forked from ArgoCrew/hematopy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
openapi.yaml
85 lines (85 loc) · 1.86 KB
/
openapi.yaml
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
84
85
swagger: "2.0"
info:
title: Hematopy Web API
version: v1
description: Python and Blood
contact:
name: Argo Crew / ArgoPy
email: contact+hematopy@argocrew.io
url: https://github.com/ArgoCrew/hematopy
host: hematopy-dev-gustavorps.herokuapp.com
basePath: /api/v1/
schemes:
- https
consumes:
- application/x-www-form-urlencoded
produces:
- application/json
tags:
- name: Donation
paths:
/donations:
post:
tags:
- Donation
summary: Add a new donation and generate image banner
description: ''
operationId: createDonation
consumes:
- application/x-www-form-urlencoded
produces:
- application/json
parameters:
- in: body
name: body
required: true
schema:
$ref: "#/definitions/DonateAction"
responses:
405:
description: Invalid input
definitions:
DonateAction:
type: object
required:
- recipient_image
- recipient_name
- recipient_blood_type
- location_name
- location_address_street
- location_address_number
- location_address_district
- location_address_locality
- location_address_region
- location_address_postal_code
properties:
recipient_image:
type: string
format: binary
recipient_name:
type: string
recipient_blood_type:
type: string
enum:
- A-
- A+
- B-
- B+
- AB-
- AB+
- O-
- O+
location_name:
type: string
location_address_street:
type: string
location_address_number:
type: string
location_address_district:
type: string
location_address_locality:
type: string
location_address_region:
type: string
location_address_postal_code:
type: number