Skip to content

Add documentation for API description providers in web sites #8465

Closed

Description

@dougbu

General

#4896 includes (and the Microsoft.Extensions.ApiDescription.Client package will include) a generic tool that retrieves API descriptions from web sites. Though the tool can fire up the web site (in TestServer) and download the description from a URI, that requires site-specific configuration. The tool first attempts to get a service from DI and call a method on that service to get the API description. This issue is about documenting that service for providers (such as NSwag and Swagger) with packages extending web sites to generate API descriptions.

We plan to submit an example service implementation to the https://github.com/RSutor/NSwag repo but not to do the same for (say) Swashbuckle. Further, that example will not (cannot) cover the various options providers have w.r.t. the service name, method name, or method signature. Other providers will thus require documentation of how to work with the new tool.

Requests for new Topics

Topic will cover requirements for implementing an Microsoft.Extensions.ApiDescriptions.IDocumentProvider service and how that service will be invoked. (Note: IDocumentProvider is just a name the service uses to activate the service. We won't include a definition of the interface in any Microsoft package. Providers may choose from a number of method signatures and, therefore, concrete interfaces.)

Contents

Placement

Should probably go close to the documentation added in #8461

CC

@glennc


Associated WorkItem - 631460

Activity

  1. self-assigned this
    on Sep 10, 2018
  2. added this to the Backlog milestone on Sep 10, 2018
  3. self-assigned this
    on Apr 6, 2019
  4. modified the milestones: Backlog, 3.0.0-preview6 on Apr 6, 2019
  5. dougbu commented on Jun 11, 2019

    @dougbu
    ContributorAuthor

    @glennc given the low number of OpenAPI document providers, how important is this documentation for our partners i.e. is it really a P1 (@scottaddie's suggestion) or P2 (@danroth27's suggestion)?

  6. 3 remaining items

  7. mkArtakMSFT commented on Sep 5, 2019

    @mkArtakMSFT
    Contributor

    This will be a good 5.0 issue.

  8. removed their assignment
    on Apr 7, 2021
  9. self-assigned this
    on Sep 5, 2026
  10. added
    reQUEST
    on Sep 5, 2026
  11. added
    seQUESTered
    and removed
    reQUEST
    on Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-mvcdoc-bugseQUESTered

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions