Open erickpeirson opened 5 years ago
Quickly looking at the Swagger-UI docs, it seems we are in good shape. The headers we use don't overlap with the Limitations.
The major issue for Community Contributors may be with CORS. If running swagger-ui local with a local copy of the repo, then this should be side-stepped, but it will be an issue for the eventual deployment. We will need to make sure the swagger.json
/swagger.yaml
files are externally exposed. Perhaps the easiest strategy is enabling CORS on the schema
directory?
We would like to generate and serve human-readable API documentation for NG APIs based on OpenAPI (v3) and JSON Schema documents.
Requirements:
Open question: where should published OpenAPI/JSON Schema docs for each API live? We could just leave them in their respective GitHub repos, push them to an S3 bucket, something else? Should not involve manual file-shuffling.
Tooling:
Background
We have quite a few NG APIs under development that use a combination of OpenAPI and JSON Schema to document their structure and behavior. For example:
These are usually stored at
schema/
off the root of the repository. The OpenAPI docs refer to JSON Schema documents, usually inschema/resources/
, using a relative$ref
. For example:We want to pull these together into a single presentation that can be deployed as part of the arXiv API gateway.
Cross-reference: ARXIVNG-1329