|
580 | 580 | "type" : "string", |
581 | 581 | "example" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InRlc3QiLCJpYXQiOjE1ODA3NTM0MDUsImV4cCI6MTU4MDgzOTgwNX0.Q6W7Vo6By35yjZBeLKkk96s8LyqIE2G39AG1H3LRD9M" |
582 | 582 | } |
| 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" |
583 | 599 | } ], |
584 | 600 | "responses" : { |
585 | 601 | "200" : { |
|
699 | 715 | "description" : { |
700 | 716 | "type" : "string", |
701 | 717 | "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 | + } |
702 | 727 | } |
703 | 728 | } |
704 | 729 | } |
|
1022 | 1047 | } |
1023 | 1048 | }, |
1024 | 1049 | "responses" : { |
1025 | | - "200" : { |
| 1050 | + "201" : { |
1026 | 1051 | "description" : "contact created" |
1027 | 1052 | }, |
| 1053 | + "400" : { |
| 1054 | + "description" : "Bad Request" |
| 1055 | + }, |
1028 | 1056 | "401" : { |
1029 | 1057 | "description" : "Unauthorized" |
1030 | 1058 | }, |
1031 | | - "422" : { |
1032 | | - "description" : "Invalid input" |
1033 | | - }, |
1034 | 1059 | "500" : { |
1035 | 1060 | "description" : "Server error" |
1036 | 1061 | } |
|
1064 | 1089 | |
1065 | 1090 | }, |
1066 | 1091 | "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" |
1075 | 1092 | } ], |
1076 | 1093 | "responses" : { |
1077 | 1094 | "200" : { |
|
1213 | 1230 | "id" : "", |
1214 | 1231 | "title" : "" |
1215 | 1232 | } ] |
| 1233 | + }, |
| 1234 | + "attributes" : { |
| 1235 | + "type" : "object", |
| 1236 | + "properties" : { |
| 1237 | + "notes" : { |
| 1238 | + "type" : "string", |
| 1239 | + "example" : "Neighbor" |
| 1240 | + } |
| 1241 | + } |
1216 | 1242 | } |
1217 | 1243 | } |
1218 | 1244 | } |
|
1223 | 1249 | "200" : { |
1224 | 1250 | "description" : "contact updated" |
1225 | 1251 | }, |
| 1252 | + "400" : { |
| 1253 | + "description" : "Bad Request" |
| 1254 | + }, |
1226 | 1255 | "401" : { |
1227 | 1256 | "description" : "Unauthorized" |
1228 | 1257 | }, |
1229 | | - "422" : { |
1230 | | - "description" : "Invalid input" |
1231 | | - }, |
1232 | 1258 | "500" : { |
1233 | 1259 | "description" : "Server error" |
1234 | 1260 | } |
|
1273 | 1299 | "200" : { |
1274 | 1300 | "description" : "contacts emailed" |
1275 | 1301 | }, |
| 1302 | + "400" : { |
| 1303 | + "description" : "Bad Request" |
| 1304 | + }, |
1276 | 1305 | "401" : { |
1277 | 1306 | "description" : "Unauthorized" |
1278 | 1307 | }, |
1279 | | - "422" : { |
1280 | | - "description" : "Invalid input" |
1281 | | - }, |
1282 | 1308 | "500" : { |
1283 | 1309 | "description" : "Server error" |
1284 | 1310 | } |
|
1319 | 1345 | } |
1320 | 1346 | } |
1321 | 1347 | }, |
| 1348 | + "400" : { |
| 1349 | + "description" : "Bad Request" |
| 1350 | + }, |
1322 | 1351 | "401" : { |
1323 | 1352 | "description" : "Unauthorized" |
1324 | 1353 | }, |
1325 | | - "422" : { |
1326 | | - "description" : "Invalid input" |
1327 | | - }, |
1328 | 1354 | "500" : { |
1329 | 1355 | "description" : "Server error" |
1330 | 1356 | } |
|
1356 | 1382 | "200" : { |
1357 | 1383 | "description" : "contact_id deleted" |
1358 | 1384 | }, |
| 1385 | + "400" : { |
| 1386 | + "description" : "Bad Request" |
| 1387 | + }, |
1359 | 1388 | "401" : { |
1360 | 1389 | "description" : "Unauthorized" |
1361 | 1390 | }, |
1362 | | - "422" : { |
1363 | | - "description" : "Invalid input" |
1364 | | - }, |
1365 | 1391 | "500" : { |
1366 | 1392 | "description" : "Server error" |
1367 | 1393 | } |
|
1418 | 1444 | "200" : { |
1419 | 1445 | "description" : "Successful/already exists" |
1420 | 1446 | }, |
| 1447 | + "400" : { |
| 1448 | + "description" : "Bad Request" |
| 1449 | + }, |
1421 | 1450 | "401" : { |
1422 | 1451 | "description" : "Unauthorized" |
1423 | 1452 | }, |
1424 | | - "422" : { |
1425 | | - "description" : "Invalid input" |
1426 | | - }, |
1427 | 1453 | "500" : { |
1428 | 1454 | "description" : "Server error" |
1429 | 1455 | } |
|
1479 | 1505 | "200" : { |
1480 | 1506 | "description" : "Successful/already exists" |
1481 | 1507 | }, |
| 1508 | + "400" : { |
| 1509 | + "description" : "Bad Request" |
| 1510 | + }, |
1482 | 1511 | "401" : { |
1483 | 1512 | "description" : "Unauthorized" |
1484 | 1513 | }, |
1485 | | - "422" : { |
1486 | | - "description" : "Invalid input" |
1487 | | - }, |
1488 | 1514 | "500" : { |
1489 | 1515 | "description" : "Server error" |
1490 | 1516 | } |
|
1600 | 1626 | } |
1601 | 1627 | } |
1602 | 1628 | }, |
1603 | | - "UserRoleItem" : { |
1604 | | - "type" : "array", |
1605 | | - "items" : { |
1606 | | - "type" : "string" |
1607 | | - }, |
1608 | | - "minItems" : 3, |
1609 | | - "maxItems" : 3 |
1610 | | - }, |
1611 | 1629 | "EntityItem" : { |
1612 | 1630 | "type" : "object", |
1613 | 1631 | "properties" : { |
|
0 commit comments