Newer
Older
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
openapi: 3.0.3
info:
title: Birth Certificate Mock-API
description: An API-Spec used for birth certificate.
version: 0.1.0
servers:
- url: https://ujse-mock-api-birth-cert-ujse-dev.k8s.across-h2020.eu
#- url: http://localhost:8888/
paths:
/my-application:
post:
summary: Issue birth certificate.
description: Issue birth certificate for you or your minor children.
requestBody:
content:
application/json:
schema:
$ref: '#/components/requestBodies/My-application'
responses:
'201': # status code
description: OK - Created
content:
application/json:
schema:
$ref: '#/components/schemas/My-application'
/children:
get:
summary: Retrieve list of self and children.
description: Retrieve list of self and children.
responses:
'200': # status code
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Children'
components:
schemas:
Children:
type: array
items:
type: object
properties:
dropdownID:
type: string
data:
type: array
items:
type: object
properties:
optionID:
type: integer
optionVal:
type: array
items:
type: object
properties:
locale:
type: string
value:
type: string
My-application:
type: array
items:
type: object
properties:
outputId:
type: integer
title:
type: string
type:
type: string
language:
type: string
description:
type: string
contentType:
type: string
content:
type: string
requestBodies:
My-application:
type: object
properties:
afm:
type: string
required: true
example: "123456789"
dateofbirth:
type: string
format: date
pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}$'
required: true
firstname:
type: string
required: true
example: "Michael"
lastname:
type: string
required: true
example: "George"
fathersname:
type: string
required: true
example: "Jordan"
mothersname:
type: string
required: true
example: "Mary"
person:
type: string
required: true
example: "0"
email:
type: string
example: "mg@gmail.com"