-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.json
220 lines (220 loc) · 4.93 KB
/
swagger.json
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "PJE Server API",
"description": "API for PJE Server"
},
"host": "localhost:3000",
"basePath": "/",
"schemes": ["http"],
"paths": {
"/pje-server": {
"get": {
"summary": "Get All PJE Server Data",
"responses": {
"200": {
"description": "Returns all PJE server data",
"schema": {
"$ref": "#/definitions/PJEServer"
}
}
}
}
},
"/pje-server/nprocesso": {
"get": {
"summary": "Get NProcesso",
"responses": {
"200": {
"description": "Returns the NProcesso data",
"schema": {
"type": "object",
"properties": {
"NProcesso": {
"type": "string"
}
}
}
}
}
}
},
"/pje-server/orgaojulgador": {
"get": {
"summary": "Get OrgaoJulgador",
"responses": {
"200": {
"description": "Returns the OrgaoJulgador data",
"schema": {
"type": "object",
"properties": {
"OrgaoJulgador": {
"type": "string"
}
}
}
}
}
}
},
"/pje-server/valordacausa": {
"get": {
"summary": "Get ValorDaCausa",
"responses": {
"200": {
"description": "Returns the ValorDaCausa data",
"schema": {
"type": "object",
"properties": {
"ValorDaCausa": {
"type": "string"
}
}
}
}
}
}
},
"/pje-server/niveldesigilo": {
"get": {
"summary": "Get NivelDeSigilo",
"responses": {
"200": {
"description": "Returns the NivelDeSigilo data",
"schema": {
"type": "object",
"properties": {
"NivelDeSigilo": {
"type": "string"
}
}
}
}
}
}
},
"/pje-server/prioridade": {
"get": {
"summary": "Get Prioridade",
"responses": {
"200": {
"description": "Returns the Prioridade data",
"schema": {
"type": "object",
"properties": {
"Prioridade": {
"type": "string"
}
}
}
}
}
}
},
"/pje-server/parte": {
"get": {
"summary": "Get Parte Data",
"responses": {
"200": {
"description": "Returns the Parte data",
"schema": {
"$ref": "#/definitions/Parte"
}
}
}
}
},
"/pje-server/parte/polo": {
"get": {
"summary": "Get Polo Data from Parte",
"responses": {
"200": {
"description": "Returns the Polo data from Parte",
"schema": {
"type": "object",
"properties": {
"Polo": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
},
"definitions": {
"PJEServer": {
"type": "object",
"properties": {
"NProcesso": {
"type": "string",
"default": "9999999-99.9999.9.99.9999"
},
"OrgaoJulgador": {
"type": "string",
"default": "Tribunal de Justiça Estadual"
},
"ValorDaCausa": {
"type": "string",
"default": "R$ 50.000,00"
},
"NivelDeSigilo": {
"type": "string",
"default": "Público"
},
"Prioridade": {
"type": "string",
"default": "Normal"
},
"Parte": {
"$ref": "#/definitions/Parte"
}
}
},
"Parte": {
"type": "object",
"properties": {
"Polo": {
"type": "array",
"items": {
"type": "string"
},
"default": ["Ativo", "Passivo", "Testemunha"]
},
"Nome": {
"type": "string",
"default": "João Silva"
},
"Documento": {
"type": "string",
"default": "123.456.789-00"
},
"Email": {
"type": "string",
"default": "joao.silva@email.com"
},
"Endereco": {
"$ref": "#/definitions/Endereco"
}
}
},
"Endereco": {
"type": "object",
"properties": {
"NumeroDaCasa": {
"type": "string",
"default": "100"
},
"CEP": {
"type": "string",
"default": "12345-678"
}
}
}
}
}