Skip to content

Describe new client code generation Swagger features #8462

Closed

Description

@Rick-Anderson

Copy from #8460 by @dougbu - we like to open doc issues from the doc page so they show up in the Feedback section of the doc.

General

https://docs.microsoft.com/en-ca/aspnet/core/tutorials/web-api-help-pages-using-swagger?view=aspnetcore-2.1 covers the current state of client code generation in ASP.NET Core web sites. However, we're working to give customers simple ways to annotate their project files for automated code generation during every build (as source API descriptions change) and that should also be documented.

Note tooling for the new experience isn't going to happen immediately. The initial documentation should focus on manual edits to .csproj files.

Issues with Existing Topics

Does not cover work described in dotnet/aspnetcore#4896 and its sub-issues.

CC

@glennc


Document details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. added
    Source - Docs.ms
    on Sep 8, 2018
  2. dougbu commented on Sep 8, 2018

    @dougbu
    Contributor

    Should have mentioned in my original comment: The new feature will give end users many customization options. The documentation should cover MSBuild properties and item metadata they can set to affect code generation.

    End users may also customize web sites that can generate API descriptions (as described in the next-level "Getting started with" pages). In this case, the optional settings control defaults for how a tool run from a consuming project will retrieve API descriptions.

  3. glennc commented on Nov 29, 2018

    @glennc
    Contributor

    You can now get an example of this working e2e using NSwag, but it isn't going to be completely RTM for 2.2. I think the best we can do here is start working on this doc first thing after the 2.2 ships as we will RTM it while we work on 3.0.

  4. aidapsibr commented on Dec 6, 2018

    @aidapsibr

    I'd love to see more docs around NSWAG for dotnetcore CI scenarios (msbuild preferably, but CLI would be ok).

    Additionally, the problem details support such as what happens out of the box if anything, how should I set it up, how does OpenAPI and ApiExplorer learn from that, does NSWAG support this model, do I use the Extensions dictionary or inherit and add properties?

    IMO these two experiences, along with docker work being done really empower micro-service design.

  5. RicoSuter commented on Jan 11, 2019

    @RicoSuter
    Contributor

    I'd love to see more docs around NSWAG for dotnetcore CI scenarios (msbuild preferably, but CLI would be ok).

    I think we shouldn't add too much specific NSwag documentation here - just add links to the NSwag project wiki. This way it is much easier to keep the docs up-to-date and consistent...

  6. changed the title [-]Describe new client code generation features (planned for 2.2 Preview 3)[/-] [+]Describe new client code generation Swagger features[/+] on Jan 11, 2019
  7. modified the milestones: Backlog, Sprint on Mar 11, 2019
  8. 13 remaining items

  9. added this to the milestone on Jun 15, 2019
  10. dougbu commented on Jun 23, 2019

    @dougbu
    Contributor

    7c22abe gets us closer but need partner releases using the latest features to complete this work.

  11. modified the milestones: , 3.0.0-preview9 on Aug 7, 2019
  12. cremor commented on Oct 17, 2019

    @cremor

    Is there a way to get this issue to show up in the feedback section of Develop ASP.NET Core apps using OpenAPI tools?

    I was already in the process of writing an issue that this feature should be described in way more detail when I remembered this issue here. It would be good if readers of that page didn't get the idea that that's all that can be said about the feature.

  13. Rick-Anderson commented on Oct 17, 2019

    @Rick-Anderson
    ContributorAuthor

    @cremor the issue can be tied to at most one page. I created and closed #15165 - which shows up on the closed issues tab of that page. Feel free to edit that closed issue.

  14. jkone27 commented on Aug 31, 2020

    @jkone27

    updates on this one? thorough and detailed documentation on OpenApiReference would be very much appreciated 👍

  15. Tim-Hodge commented on Nov 26, 2020

    @Tim-Hodge

    Also looking for some updated docs on this - is OpenApiReference the recommended way for automated generation within csproj, or should I be looking elsewhere?

  16. Rick-Anderson commented on Sep 29, 2022

    @Rick-Anderson
    ContributorAuthor

    Thank you for contacting us. Due to a lack of activity on this discussion issue we're closing it in an effort to keep our backlog manageable. If you believe there is a concern which hasn't been addressed, please file a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri1Source - Docs.msarea-mvcdoc-enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions