Skip to content

Commit f5868d7

Browse files
committed
Adding swagger
1 parent 91faf79 commit f5868d7

File tree

1 file changed

+66
-91
lines changed

1 file changed

+66
-91
lines changed

swagger.json

Lines changed: 66 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"swagger": "2.0",
33
"info": {
4-
"description": "This is a sample server Petstore server.",
4+
"description": "test.",
55
"title": "Swagger Example API",
66
"termsOfService": "http://swagger.io/terms/",
77
"contact": {
@@ -30,8 +30,7 @@
3030
"account"
3131
],
3232
"summary": "Creates an account on the service",
33-
"parameters": [
34-
{
33+
"parameters": [{
3534
"maxLength": 320,
3635
"minLength": 4,
3736
"type": "string",
@@ -75,8 +74,7 @@
7574
"account"
7675
],
7776
"summary": "Sign Into Account",
78-
"parameters": [
79-
{
77+
"parameters": [{
8078
"maxLength": 320,
8179
"minLength": 4,
8280
"type": "string",
@@ -115,8 +113,7 @@
115113
"verify"
116114
],
117115
"summary": "Gets the account by ID",
118-
"parameters": [
119-
{
116+
"parameters": [{
120117
"type": "string",
121118
"description": "Authentication header",
122119
"name": "Auth",
@@ -153,15 +150,13 @@
153150
"verify"
154151
],
155152
"summary": "Gets all user accounts",
156-
"parameters": [
157-
{
158-
"type": "string",
159-
"description": "Authentication header",
160-
"name": "Auth",
161-
"in": "header",
162-
"required": true
163-
}
164-
],
153+
"parameters": [{
154+
"type": "string",
155+
"description": "Authentication header",
156+
"name": "Auth",
157+
"in": "header",
158+
"required": true
159+
}],
165160
"responses": {
166161
"200": {
167162
"description": "OK",
@@ -187,15 +182,13 @@
187182
"verify"
188183
],
189184
"summary": "Gets all user accounts",
190-
"parameters": [
191-
{
192-
"type": "string",
193-
"description": "Authentication header",
194-
"name": "Auth",
195-
"in": "header",
196-
"required": true
197-
}
198-
],
185+
"parameters": [{
186+
"type": "string",
187+
"description": "Authentication header",
188+
"name": "Auth",
189+
"in": "header",
190+
"required": true
191+
}],
199192
"responses": {
200193
"200": {
201194
"description": "OK",
@@ -221,8 +214,7 @@
221214
"verify"
222215
],
223216
"summary": "Gets the user account role by ID",
224-
"parameters": [
225-
{
217+
"parameters": [{
226218
"type": "string",
227219
"description": "Authentication header",
228220
"name": "Auth",
@@ -260,8 +252,7 @@
260252
"verify"
261253
],
262254
"summary": "Deletes user by ID",
263-
"parameters": [
264-
{
255+
"parameters": [{
265256
"type": "string",
266257
"description": "Authentication header",
267258
"name": "Auth",
@@ -295,15 +286,13 @@
295286
"verify"
296287
],
297288
"summary": "Verifies an email with a UID sent to the account email",
298-
"parameters": [
299-
{
300-
"type": "string",
301-
"description": "uid from email",
302-
"name": "uid",
303-
"in": "query",
304-
"required": true
305-
}
306-
],
289+
"parameters": [{
290+
"type": "string",
291+
"description": "uid from email",
292+
"name": "uid",
293+
"in": "query",
294+
"required": true
295+
}],
307296
"responses": {
308297
"200": {
309298
"description": ""
@@ -323,15 +312,13 @@
323312
"verify"
324313
],
325314
"summary": "Gets the user account information",
326-
"parameters": [
327-
{
328-
"type": "string",
329-
"description": "Authentication header",
330-
"name": "Auth",
331-
"in": "header",
332-
"required": true
333-
}
334-
],
315+
"parameters": [{
316+
"type": "string",
317+
"description": "Authentication header",
318+
"name": "Auth",
319+
"in": "header",
320+
"required": true
321+
}],
335322
"responses": {
336323
"200": {
337324
"description": "OK",
@@ -352,8 +339,7 @@
352339
"verify"
353340
],
354341
"summary": "Deletes user by ID",
355-
"parameters": [
356-
{
342+
"parameters": [{
357343
"type": "string",
358344
"description": "Authentication header",
359345
"name": "Auth",
@@ -387,8 +373,7 @@
387373
"Project"
388374
],
389375
"summary": "Updates a user account role by ID",
390-
"parameters": [
391-
{
376+
"parameters": [{
392377
"type": "string",
393378
"description": "Authentication header as token",
394379
"name": "Authentication",
@@ -436,15 +421,13 @@
436421
"verify"
437422
],
438423
"summary": "Gets the user account role by account ID",
439-
"parameters": [
440-
{
441-
"type": "string",
442-
"description": "Authentication header",
443-
"name": "Auth",
444-
"in": "header",
445-
"required": true
446-
}
447-
],
424+
"parameters": [{
425+
"type": "string",
426+
"description": "Authentication header",
427+
"name": "Auth",
428+
"in": "header",
429+
"required": true
430+
}],
448431
"responses": {
449432
"200": {
450433
"description": "OK",
@@ -468,15 +451,13 @@
468451
"verify"
469452
],
470453
"summary": "Creates a user account role",
471-
"parameters": [
472-
{
473-
"type": "string",
474-
"description": "Authentication header",
475-
"name": "Auth",
476-
"in": "header",
477-
"required": true
478-
}
479-
],
454+
"parameters": [{
455+
"type": "string",
456+
"description": "Authentication header",
457+
"name": "Auth",
458+
"in": "header",
459+
"required": true
460+
}],
480461
"responses": {
481462
"200": {
482463
"description": "OK",
@@ -499,15 +480,13 @@
499480
"verify"
500481
],
501482
"summary": "Gets the user account role by user ID and account ID",
502-
"parameters": [
503-
{
504-
"type": "string",
505-
"description": "Authentication header",
506-
"name": "Auth",
507-
"in": "header",
508-
"required": true
509-
}
510-
],
483+
"parameters": [{
484+
"type": "string",
485+
"description": "Authentication header",
486+
"name": "Auth",
487+
"in": "header",
488+
"required": true
489+
}],
511490
"responses": {
512491
"200": {
513492
"description": "OK",
@@ -533,15 +512,13 @@
533512
"verify"
534513
],
535514
"summary": "Gets the user account information",
536-
"parameters": [
537-
{
538-
"type": "string",
539-
"description": "Authentication header",
540-
"name": "Auth",
541-
"in": "header",
542-
"required": true
543-
}
544-
],
515+
"parameters": [{
516+
"type": "string",
517+
"description": "Authentication header",
518+
"name": "Auth",
519+
"in": "header",
520+
"required": true
521+
}],
545522
"responses": {
546523
"200": {
547524
"description": "OK",
@@ -564,8 +541,7 @@
564541
"Project"
565542
],
566543
"summary": "Updates a user account by ID",
567-
"parameters": [
568-
{
544+
"parameters": [{
569545
"type": "string",
570546
"description": "Authentication header as token",
571547
"name": "Authentication",
@@ -607,8 +583,7 @@
607583
"Project"
608584
],
609585
"summary": "Updates a user account by ID",
610-
"parameters": [
611-
{
586+
"parameters": [{
612587
"type": "string",
613588
"description": "Authentication header as token",
614589
"name": "Authentication",

0 commit comments

Comments
 (0)