You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
allow exclusion of non-API artefacts from the specification #40
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.
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
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.
Activity
davepacheco commentedon Aug 12, 2020
A couple of ideas we discussed:
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)endpointmacrojclulow commentedon Aug 14, 2020
I could see both separate
ApiDescriptions and ahiddenboolean being useful at different times. For example, if we use differentApiDescriptionobjects 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.jclulow commentedon Nov 28, 2023
I believe this is covered by the addition of
unpublished = truein the endpoint macro.