Skip to content

Commit

Permalink
Update openapi.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Feb 4, 2019
1 parent c3ffaab commit 262ee44
Showing 1 changed file with 88 additions and 7 deletions.
95 changes: 88 additions & 7 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,31 @@ servers:
description: Production server
- url: https://api.test.datacite.org
description: Staging server
tags:
- name: client-prefixes
description: Client Prefixes
- name: clients
description: Clients
- name: dois
description: DOIs
- name: events
description: Events
- name: heartbeat
description: Heartbeat
- name: prefixes
description: Prefixes
- name: provider-prefixes
description: Provider Prefixes
- name: providers
description: Providers
- name: reports
description: Reports

paths:
/client-prefixes:
get:
tags:
- client-prefixes
summary: Returns a list of client-prefixes.
parameters:
- in: query
Expand Down Expand Up @@ -54,6 +76,8 @@ paths:
$ref: '#/components/schemas/ClientPrefix'
/clients:
get:
tags:
- clients
summary: Returns a list of clients.
security: []
parameters:
Expand Down Expand Up @@ -100,6 +124,8 @@ paths:
schema:
$ref: '#/components/schemas/Client'
post:
tags:
- clients
summary: Add a new client.
requestBody:
required: true
Expand All @@ -120,6 +146,8 @@ paths:
schema:
type: string
get:
tags:
- clients
summary: Returns a client.
security: []
responses:
Expand All @@ -130,6 +158,8 @@ paths:
schema:
$ref: '#/components/schemas/Client'
put:
tags:
- clients
summary: Update a client.
requestBody:
required: true
Expand All @@ -141,12 +171,16 @@ paths:
'200':
description: OK
delete:
tags:
- clients
summary: Delete a client.
responses:
'204':
description: No content
/dois:
get:
tags:
- dois
summary: Return a list of dois.
security: []
parameters:
Expand Down Expand Up @@ -229,6 +263,8 @@ paths:
schema:
$ref: '#/components/schemas/Doi'
post:
tags:
- dois
summary: Add a new doi.
requestBody:
required: true
Expand All @@ -249,6 +285,8 @@ paths:
schema:
type: string
get:
tags:
- dois
summary: Returns a doi.
security: []
responses:
Expand All @@ -259,6 +297,8 @@ paths:
schema:
$ref: '#/components/schemas/Doi'
put:
tags:
- dois
summary: Update a doi.
requestBody:
required: true
Expand All @@ -270,6 +310,8 @@ paths:
'200':
description: OK
delete:
tags:
- dois
summary: Delete a doi.
responses:
'204':
Expand Down Expand Up @@ -365,7 +407,11 @@ paths:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/Event'
tags:
- events
post:
tags:
- events
summary: Add a new event.
requestBody:
required: true
Expand All @@ -378,16 +424,19 @@ paths:
description: Created

/events/{id}:
parameters:
- name: id
in: path
description: Event
required: true
schema:
type: string
get:
tags:
- events
summary: Returns an event.
security: []
parameters:
- name: id
in: path
description: Event
required: true
schema:
type: string

responses:
'200':
description: A JSON array of events.
Expand All @@ -396,6 +445,8 @@ paths:
schema:
$ref: '#/components/schemas/Event'
put:
tags:
- events
summary: Update an event.
requestBody:
required: true
Expand All @@ -407,13 +458,17 @@ paths:
'200':
description: OK
delete:
tags:
- events
summary: Delete an event.
responses:
'204':
description: No content

/heartbeat:
get:
tags:
- heartbeat
summary: This resource returns the current status of the REST API.
security: []
responses:
Expand All @@ -433,6 +488,8 @@ paths:
example: failed
/prefixes:
get:
tags:
- prefixes
summary: Returns a list of prefixes.
security: []
responses:
Expand All @@ -444,6 +501,8 @@ paths:
$ref: '#/components/schemas/Prefix'
/prefixes/{id}:
get:
tags:
- prefixes
summary: A prefix.
security: []
parameters:
Expand All @@ -462,6 +521,8 @@ paths:
$ref: '#/components/schemas/Prefix'
/provider-prefixes:
get:
tags:
- provider-prefixes
summary: A JSON array of provider-prefixes.
responses:
'200':
Expand All @@ -472,6 +533,8 @@ paths:
$ref: '#/components/schemas/ProviderPrefix'
/providers:
get:
tags:
- providers
summary: A JSON array of providers.
security: []
parameters:
Expand Down Expand Up @@ -519,6 +582,8 @@ paths:
schema:
$ref: '#/components/schemas/Provider'
post:
tags:
- providers
summary: Add a new provider.
requestBody:
required: true
Expand All @@ -539,6 +604,8 @@ paths:
schema:
type: string
get:
tags:
- providers
summary: A provider.
responses:
'200':
Expand All @@ -548,6 +615,8 @@ paths:
schema:
$ref: '#/components/schemas/Provider'
put:
tags:
- providers
summary: Update a provider.
requestBody:
required: true
Expand All @@ -559,13 +628,17 @@ paths:
'200':
description: OK
delete:
tags:
- providers
summary: Delete a provider.
responses:
'204':
description: No content

/reports:
get:
tags:
- reports
summary: A JSON array of reports.
security: []
parameters:
Expand Down Expand Up @@ -618,6 +691,8 @@ paths:
schema:
$ref: '#/components/schemas/Report'
post:
tags:
- reports
summary: Add a new report.
requestBody:
required: true
Expand All @@ -638,6 +713,8 @@ paths:
schema:
type: string
get:
tags:
- reports
summary: A report.
responses:
'200':
Expand All @@ -647,6 +724,8 @@ paths:
schema:
$ref: '#/components/schemas/Report'
put:
tags:
- reports
summary: Update a report.
requestBody:
required: true
Expand All @@ -658,6 +737,8 @@ paths:
'200':
description: OK
delete:
tags:
- reports
summary: Delete a report.
responses:
'204':
Expand Down

0 comments on commit 262ee44

Please sign in to comment.