|
1000 | 1000 | "tags": [
|
1001 | 1001 | "Pet"
|
1002 | 1002 | ],
|
1003 |
| - "parameters": [], |
| 1003 | + "parameters": [ |
| 1004 | + { |
| 1005 | + "in": "query", |
| 1006 | + "name": "petID", |
| 1007 | + "schema": { |
| 1008 | + "type": "integer", |
| 1009 | + "format": "int64", |
| 1010 | + "uniqueItems": true, |
| 1011 | + "description": "Note Sails special attributes: autoIncrement", |
| 1012 | + "readOnly": true |
| 1013 | + }, |
| 1014 | + "description": "Note Sails special attributes: autoIncrement" |
| 1015 | + }, |
| 1016 | + { |
| 1017 | + "in": "query", |
| 1018 | + "name": "names", |
| 1019 | + "schema": { |
| 1020 | + "type": "string", |
| 1021 | + "example": "Pet's full name" |
| 1022 | + }, |
| 1023 | + "required": true |
| 1024 | + }, |
| 1025 | + { |
| 1026 | + "in": "query", |
| 1027 | + "name": "owner", |
| 1028 | + "schema": { |
| 1029 | + "description": "JSON dictionary representing the **user** instance or FK when creating / updating / not populated", |
| 1030 | + "oneOf": [ |
| 1031 | + { |
| 1032 | + "$ref": "#/components/schemas/user" |
| 1033 | + } |
| 1034 | + ] |
| 1035 | + }, |
| 1036 | + "description": "JSON dictionary representing the **user** instance or FK when creating / updating / not populated" |
| 1037 | + }, |
| 1038 | + { |
| 1039 | + "in": "query", |
| 1040 | + "name": "caredForBy", |
| 1041 | + "schema": { |
| 1042 | + "description": "JSON dictionary representing the **user** instance or FK when creating / updating / not populated", |
| 1043 | + "oneOf": [ |
| 1044 | + { |
| 1045 | + "$ref": "#/components/schemas/user" |
| 1046 | + } |
| 1047 | + ] |
| 1048 | + }, |
| 1049 | + "description": "JSON dictionary representing the **user** instance or FK when creating / updating / not populated" |
| 1050 | + } |
| 1051 | + ], |
1004 | 1052 | "responses": {
|
1005 | 1053 | "200": {
|
1006 | 1054 | "description": "Responds with a JSON dictionary representing the newly created **Pet** instance",
|
|
1300 | 1348 | "User (ORM duplicate)",
|
1301 | 1349 | "User (ORM)"
|
1302 | 1350 | ],
|
1303 |
| - "parameters": [], |
| 1351 | + "parameters": [ |
| 1352 | + { |
| 1353 | + "in": "query", |
| 1354 | + "name": "id", |
| 1355 | + "schema": { |
| 1356 | + "type": "integer", |
| 1357 | + "format": "int64", |
| 1358 | + "uniqueItems": true, |
| 1359 | + "description": "Note Sails special attributes: autoIncrement" |
| 1360 | + }, |
| 1361 | + "description": "Note Sails special attributes: autoIncrement" |
| 1362 | + }, |
| 1363 | + { |
| 1364 | + "in": "query", |
| 1365 | + "name": "names", |
| 1366 | + "schema": { |
| 1367 | + "type": "string", |
| 1368 | + "example": "First Middle Last" |
| 1369 | + }, |
| 1370 | + "required": true |
| 1371 | + }, |
| 1372 | + { |
| 1373 | + "in": "query", |
| 1374 | + "name": "email", |
| 1375 | + "schema": { |
| 1376 | + "type": "string", |
| 1377 | + "format": "email", |
| 1378 | + "description": "Just any old email" |
| 1379 | + }, |
| 1380 | + "description": "Just any old email" |
| 1381 | + }, |
| 1382 | + { |
| 1383 | + "in": "query", |
| 1384 | + "name": "sex", |
| 1385 | + "schema": { |
| 1386 | + "type": "string", |
| 1387 | + "enum": [ |
| 1388 | + "Male", |
| 1389 | + "Female" |
| 1390 | + ] |
| 1391 | + } |
| 1392 | + }, |
| 1393 | + { |
| 1394 | + "in": "query", |
| 1395 | + "name": "ageLimit", |
| 1396 | + "schema": { |
| 1397 | + "type": "number", |
| 1398 | + "format": "double", |
| 1399 | + "maximum": 100, |
| 1400 | + "minimum": 15 |
| 1401 | + } |
| 1402 | + }, |
| 1403 | + { |
| 1404 | + "in": "query", |
| 1405 | + "name": "pets", |
| 1406 | + "schema": { |
| 1407 | + "description": "Array of **pet**'s or array of FK's when creating / updating / not populated", |
| 1408 | + "type": "array", |
| 1409 | + "items": { |
| 1410 | + "$ref": "#/components/schemas/pet" |
| 1411 | + } |
| 1412 | + }, |
| 1413 | + "description": "Array of **pet**'s or array of FK's when creating / updating / not populated" |
| 1414 | + }, |
| 1415 | + { |
| 1416 | + "in": "query", |
| 1417 | + "name": "favouritePet", |
| 1418 | + "schema": { |
| 1419 | + "description": "JSON dictionary representing the **pet** instance or FK when creating / updating / not populated", |
| 1420 | + "oneOf": [ |
| 1421 | + { |
| 1422 | + "$ref": "#/components/schemas/pet" |
| 1423 | + } |
| 1424 | + ] |
| 1425 | + }, |
| 1426 | + "description": "JSON dictionary representing the **pet** instance or FK when creating / updating / not populated" |
| 1427 | + }, |
| 1428 | + { |
| 1429 | + "in": "query", |
| 1430 | + "name": "neighboursPets", |
| 1431 | + "schema": { |
| 1432 | + "description": "Array of **pet**'s or array of FK's when creating / updating / not populated", |
| 1433 | + "type": "array", |
| 1434 | + "items": { |
| 1435 | + "$ref": "#/components/schemas/pet" |
| 1436 | + } |
| 1437 | + }, |
| 1438 | + "description": "Array of **pet**'s or array of FK's when creating / updating / not populated" |
| 1439 | + } |
| 1440 | + ], |
1304 | 1441 | "responses": {
|
1305 | 1442 | "200": {
|
1306 | 1443 | "description": "Responds with a JSON dictionary representing the newly created **User** instance",
|
|
0 commit comments