CrossRef / cayenne

MOVED to https://gitlab.com/crossref/rest_api
https://gitlab.com/crossref/rest_api
MIT License
17 stars 9 forks source link

Swagger Documentation #8

Closed markwoodhall closed 6 years ago

markwoodhall commented 6 years ago

This pull request is a first attempt at implementing swagger documentation for the cayenne api, it is not yet fully complete but the basic structure is present for a number of the key endpoints.

Funders

Journals

Works

Prefixes

Members

Types

swagger.json is available at /swagger-docs and the swagger ui is available at /swagger-ui.

The following things still need to be finished:

There are also a number of other endpoint categories that have lower priority and are yet to be documented:

  1. cores
  2. licenses
  3. styles
  4. locales
  5. reverse
markwoodhall commented 6 years ago

If you want a quick way to test this out you can browse to http://petstore.swagger.io/ and enter https://gist.githubusercontent.com/markwoodhall/11e977324668f48bfa24bdd3841b09c6/raw/d06a7e1010abfcdfc91c517b5a1c87f69918f499/swagger.json in the "Explore" text box at the top of the page.

That url is gist containing the swagger.json generated by ring-swagger.

afandian commented 6 years ago

Looks great! We'll need to see how easy it is to use in this format, and whether we want to pull out the filter text so it only appears in one place in a future iteration.

The Swagger UI will be available at /v1/swagger-ui/.