Skip to content

allow exclusion of non-API artefacts from the specification #40

Closed

Description

@jclulow

In the case that a server presents both an API and some other artefacts (e.g., a descriptive or interactive set of HTML pages, images, etc) it would be good to be able to omit those handlers from any API specification that is produced.

Activity

  1. davepacheco commented on Aug 12, 2020

    @davepacheco
    Collaborator

    A couple of ideas we discussed:

    • Allowing a single Dropshot server to serve multiple ApiDescriptions (possibly using a consolidated router, so that they can't overlap in the namespace). I like this because it lets us put other configuration here (e.g., could use customisation of error presentation #39)
    • adding a "hide_from_spec" boolean to the endpoint macro
    • using a different macro for something like this
  2. jclulow commented on Aug 14, 2020

    @jclulow
    CollaboratorAuthor

    I could see both separate ApiDescriptions and a hidden boolean being useful at different times. For example, if we use different ApiDescription objects for two different API versions each with a specification -- but both of them have some subset of endpoints we don't wish to include in the document for some reason.

  3. jclulow commented on Nov 28, 2023

    @jclulow
    CollaboratorAuthor

    I believe this is covered by the addition of unpublished = true in the endpoint macro.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions