Skip to content

openapi #3241

Answered by eddyashton
martijnlammers asked this question in Q&A
openapi #3241
Nov 24, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

There's an automatically generated endpoint /app/api, which returns an OpenAPI description of every endpoint under /app, and inserts the OpenAPI elements from app.json in the relevant place.

For instance with the tests/js-authentication app, which has empty openapi objects in its app.json, this endpoint just reports the HTTP methods available on each path but has no more information:

# This app has no OpenAPI information
$ cat ../tests/js-authentication/app.json
...
    "/secret": {
      "get": {
        ...
        "openapi": {}
      },
      "post": {
        ...
        "openapi": {}
      }
    },
    "/roles": {
      "post": {
        ...
        "openapi": {}
      }
    }
...

#…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@martijnlammers
Comment options

@eddyashton
Comment options

Answer selected by martijnlammers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants