mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-13 00:32:16 -05:00
Add organisation and service routes to openapi
This commit is contained in:
171
docs/openapi.yml
171
docs/openapi.yml
@@ -16,6 +16,73 @@ components:
|
|||||||
scheme: bearer
|
scheme: bearer
|
||||||
bearerFormat: JWT
|
bearerFormat: JWT
|
||||||
schemas:
|
schemas:
|
||||||
|
serviceObject:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
active:
|
||||||
|
type: boolean
|
||||||
|
billing_contact_email_addresses:
|
||||||
|
type: string
|
||||||
|
billing_contact_names:
|
||||||
|
type: string
|
||||||
|
billing_reference:
|
||||||
|
type: string
|
||||||
|
consent_to_research:
|
||||||
|
type: string
|
||||||
|
contact_link:
|
||||||
|
type: string
|
||||||
|
count_as_live:
|
||||||
|
type: boolean
|
||||||
|
created_by:
|
||||||
|
type: string
|
||||||
|
email_branding:
|
||||||
|
type: string
|
||||||
|
email_from:
|
||||||
|
type: string
|
||||||
|
go_live_at:
|
||||||
|
type: string
|
||||||
|
go_live_user:
|
||||||
|
type: string
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
inbound_api:
|
||||||
|
type: array
|
||||||
|
letter_branding:
|
||||||
|
type: string
|
||||||
|
message_limit:
|
||||||
|
type: number
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
notes:
|
||||||
|
type: string
|
||||||
|
organisation:
|
||||||
|
type: string
|
||||||
|
organisation_type:
|
||||||
|
type: string
|
||||||
|
enum: ["federal", "state", "other"]
|
||||||
|
default: "federal"
|
||||||
|
permissions:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
prefix_sms:
|
||||||
|
type: boolean
|
||||||
|
purchase_order_number:
|
||||||
|
type: string
|
||||||
|
rate_limit:
|
||||||
|
type: number
|
||||||
|
research_model:
|
||||||
|
type: boolean
|
||||||
|
restricted:
|
||||||
|
type: boolean
|
||||||
|
service_callback_api:
|
||||||
|
type: array
|
||||||
|
volume_email:
|
||||||
|
type: string
|
||||||
|
volume_letter:
|
||||||
|
type: string
|
||||||
|
volume_sms:
|
||||||
|
type: string
|
||||||
userObject:
|
userObject:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -65,6 +132,8 @@ paths:
|
|||||||
/_status?simple=1:
|
/_status?simple=1:
|
||||||
get:
|
get:
|
||||||
description: 'Retrieve only an acknowledgement that the server is listening'
|
description: 'Retrieve only an acknowledgement that the server is listening'
|
||||||
|
tags:
|
||||||
|
- public
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
@@ -79,6 +148,8 @@ paths:
|
|||||||
/_status:
|
/_status:
|
||||||
get:
|
get:
|
||||||
description: 'Retrieve information on the status of the Notify API server'
|
description: 'Retrieve information on the status of the Notify API server'
|
||||||
|
tags:
|
||||||
|
- public
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
@@ -99,7 +170,8 @@ paths:
|
|||||||
/_status/live-service-and-organisation-counts:
|
/_status/live-service-and-organisation-counts:
|
||||||
get:
|
get:
|
||||||
description: 'Retrieve a count of live services and organizations in the Notify system'
|
description: 'Retrieve a count of live services and organizations in the Notify system'
|
||||||
parameters: []
|
tags:
|
||||||
|
- public
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
@@ -117,7 +189,8 @@ paths:
|
|||||||
security:
|
security:
|
||||||
- bearerAuth: []
|
- bearerAuth: []
|
||||||
description: 'Retrieve list of all users'
|
description: 'Retrieve list of all users'
|
||||||
parameters: []
|
tags:
|
||||||
|
- internal-api
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
@@ -135,6 +208,8 @@ paths:
|
|||||||
security:
|
security:
|
||||||
- bearerAuth: []
|
- bearerAuth: []
|
||||||
description: 'Retrieve single user details'
|
description: 'Retrieve single user details'
|
||||||
|
tags:
|
||||||
|
- internal-api
|
||||||
parameters:
|
parameters:
|
||||||
- name: uuid
|
- name: uuid
|
||||||
in: path
|
in: path
|
||||||
@@ -151,3 +226,95 @@ paths:
|
|||||||
properties:
|
properties:
|
||||||
data:
|
data:
|
||||||
$ref: "#/components/schemas/userObject"
|
$ref: "#/components/schemas/userObject"
|
||||||
|
/organisations:
|
||||||
|
get:
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
description: 'Retrieve organization details'
|
||||||
|
tags:
|
||||||
|
- internal-api
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
active:
|
||||||
|
type: boolean
|
||||||
|
count_of_live_services:
|
||||||
|
type: number
|
||||||
|
domains:
|
||||||
|
type: array
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
organisation_type:
|
||||||
|
type: string
|
||||||
|
enum: ["federal", "state", "other"]
|
||||||
|
/service:
|
||||||
|
get:
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
description: 'Retrieve all services'
|
||||||
|
tags:
|
||||||
|
- internal-api
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: "#/components/schemas/serviceObject"
|
||||||
|
/service/{uuid}:
|
||||||
|
get:
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
description: 'Retrieve details of a single service'
|
||||||
|
tags:
|
||||||
|
- internal-api
|
||||||
|
parameters:
|
||||||
|
- name: uuid
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
$ref: "#/components/schemas/serviceObject"
|
||||||
|
/service/{uuid}/statistics:
|
||||||
|
get:
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
description: 'Retrieve statistics about messages sent by a service'
|
||||||
|
tags:
|
||||||
|
- internal-api
|
||||||
|
parameters:
|
||||||
|
- name: uuid
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
|||||||
Reference in New Issue
Block a user