Unofficial OpenAPI specification for openBD.
The OpenAPI specification is ./bin/openapi.yaml
.
Install
git clone https://github.com/mitosagi/openbd-openapi
npm install
Get lang/framework list
npm run gen-list
Output is a list of languages/frameworks that are supported by the code generator. See GitHub - OpenAPITools/openapi-generator for details.
Code generation
npm run gen -- java
'java' is an example. You can specify any language/framework in the output list. The code of the API client is generated in the ./gen
folder.
When partial-api.yaml
or the official JSON Schema is changed, it is necessary to regenerate ./bin/openapi.yaml
.
npm run create
All URIs are relative to https://api.openbd.jp/v1
HTTP request | Description |
---|---|
GET /coverage | Get coverage |
GET /get | Get up to 1,000 bibliographic information |
POST /get | Get up to 10,000 bibliographic information |