Skip to content

Commit 4d50af8

Browse files
committed
Swagger updates
1 parent de1ca23 commit 4d50af8

File tree

1 file changed

+56
-38
lines changed

1 file changed

+56
-38
lines changed

swagger.json

Lines changed: 56 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,22 @@
580580
"type" : "string",
581581
"example" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InRlc3QiLCJpYXQiOjE1ODA3NTM0MDUsImV4cCI6MTU4MDgzOTgwNX0.Q6W7Vo6By35yjZBeLKkk96s8LyqIE2G39AG1H3LRD9M"
582582
}
583+
}, {
584+
"in" : "query",
585+
"name" : "type",
586+
"schema" : {
587+
"type" : "string",
588+
"example" : "name"
589+
},
590+
"description" : "The type of field you are searching on"
591+
}, {
592+
"in" : "query",
593+
"name" : "value",
594+
"schema" : {
595+
"type" : "string",
596+
"example" : "The Leftorium"
597+
},
598+
"description" : "The value you are searching for"
583599
} ],
584600
"responses" : {
585601
"200" : {
@@ -699,6 +715,15 @@
699715
"description" : {
700716
"type" : "string",
701717
"example" : "Everything for the left handed man, woman, and child!"
718+
},
719+
"attributes" : {
720+
"type" : "object",
721+
"properties" : {
722+
"capacity" : {
723+
"type" : "number",
724+
"example" : 42
725+
}
726+
}
702727
}
703728
}
704729
}
@@ -1022,15 +1047,15 @@
10221047
}
10231048
},
10241049
"responses" : {
1025-
"200" : {
1050+
"201" : {
10261051
"description" : "contact created"
10271052
},
1053+
"400" : {
1054+
"description" : "Bad Request"
1055+
},
10281056
"401" : {
10291057
"description" : "Unauthorized"
10301058
},
1031-
"422" : {
1032-
"description" : "Invalid input"
1033-
},
10341059
"500" : {
10351060
"description" : "Server error"
10361061
}
@@ -1064,14 +1089,6 @@
10641089
"example" : "[email protected]"
10651090
},
10661091
"description" : "The value you are searching for"
1067-
}, {
1068-
"in" : "query",
1069-
"name" : "limit",
1070-
"schema" : {
1071-
"type" : "integer",
1072-
"example" : 10
1073-
},
1074-
"description" : "The maximum number of values you want returned"
10751092
} ],
10761093
"responses" : {
10771094
"200" : {
@@ -1213,6 +1230,15 @@
12131230
"id" : "",
12141231
"title" : ""
12151232
} ]
1233+
},
1234+
"attributes" : {
1235+
"type" : "object",
1236+
"properties" : {
1237+
"notes" : {
1238+
"type" : "string",
1239+
"example" : "Neighbor"
1240+
}
1241+
}
12161242
}
12171243
}
12181244
}
@@ -1223,12 +1249,12 @@
12231249
"200" : {
12241250
"description" : "contact updated"
12251251
},
1252+
"400" : {
1253+
"description" : "Bad Request"
1254+
},
12261255
"401" : {
12271256
"description" : "Unauthorized"
12281257
},
1229-
"422" : {
1230-
"description" : "Invalid input"
1231-
},
12321258
"500" : {
12331259
"description" : "Server error"
12341260
}
@@ -1273,12 +1299,12 @@
12731299
"200" : {
12741300
"description" : "contacts emailed"
12751301
},
1302+
"400" : {
1303+
"description" : "Bad Request"
1304+
},
12761305
"401" : {
12771306
"description" : "Unauthorized"
12781307
},
1279-
"422" : {
1280-
"description" : "Invalid input"
1281-
},
12821308
"500" : {
12831309
"description" : "Server error"
12841310
}
@@ -1319,12 +1345,12 @@
13191345
}
13201346
}
13211347
},
1348+
"400" : {
1349+
"description" : "Bad Request"
1350+
},
13221351
"401" : {
13231352
"description" : "Unauthorized"
13241353
},
1325-
"422" : {
1326-
"description" : "Invalid input"
1327-
},
13281354
"500" : {
13291355
"description" : "Server error"
13301356
}
@@ -1356,12 +1382,12 @@
13561382
"200" : {
13571383
"description" : "contact_id deleted"
13581384
},
1385+
"400" : {
1386+
"description" : "Bad Request"
1387+
},
13591388
"401" : {
13601389
"description" : "Unauthorized"
13611390
},
1362-
"422" : {
1363-
"description" : "Invalid input"
1364-
},
13651391
"500" : {
13661392
"description" : "Server error"
13671393
}
@@ -1418,12 +1444,12 @@
14181444
"200" : {
14191445
"description" : "Successful/already exists"
14201446
},
1447+
"400" : {
1448+
"description" : "Bad Request"
1449+
},
14211450
"401" : {
14221451
"description" : "Unauthorized"
14231452
},
1424-
"422" : {
1425-
"description" : "Invalid input"
1426-
},
14271453
"500" : {
14281454
"description" : "Server error"
14291455
}
@@ -1479,12 +1505,12 @@
14791505
"200" : {
14801506
"description" : "Successful/already exists"
14811507
},
1508+
"400" : {
1509+
"description" : "Bad Request"
1510+
},
14821511
"401" : {
14831512
"description" : "Unauthorized"
14841513
},
1485-
"422" : {
1486-
"description" : "Invalid input"
1487-
},
14881514
"500" : {
14891515
"description" : "Server error"
14901516
}
@@ -1600,14 +1626,6 @@
16001626
}
16011627
}
16021628
},
1603-
"UserRoleItem" : {
1604-
"type" : "array",
1605-
"items" : {
1606-
"type" : "string"
1607-
},
1608-
"minItems" : 3,
1609-
"maxItems" : 3
1610-
},
16111629
"EntityItem" : {
16121630
"type" : "object",
16131631
"properties" : {

0 commit comments

Comments
 (0)