forked from HumanCellAtlas/lira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgreen_box.yml
83 lines (83 loc) · 1.75 KB
/
green_box.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
swagger: '2.0'
info:
title: HCA DCP Green Box API
description: Human Cell Atlas Data Coordination Platform Secondary Analysis ("Green Box") API
version: "0.0.1"
host: localhost:8080
schemes:
- https
produces:
- application/json
paths:
/:
get:
summary: health check
operationId: 'green_box.api.health.get'
responses:
200:
description: OK
schema:
$ref: '#/definitions/HealthCheckResponse'
default:
description: Error
schema:
type: string
/notifications:
post:
summary: Send notifications
description: |
Notify green about bundles to process
consumes:
- application/json
parameters:
- name: body
in: body
required: false
schema:
$ref: '#/definitions/Notification'
responses:
200:
description: OK
schema:
$ref: '#/definitions/NotificationResponse'
401:
description: Unauthorized
schema:
$ref: '#/definitions/Error'
default:
description: Error
schema:
type: string
definitions:
Notification:
type: object
properties:
match:
$ref: '#/definitions/Match'
Match:
type: object
properties:
bundle_uuid:
type: string
bundle_version:
type: string
Error:
type: object
properties:
error:
type: string
NotificationResponse:
type: object
properties:
result:
type: object
properties:
status:
type: string
id:
type: string
HealthCheckResponse:
type: object
properties:
status:
type: string