Method | Content-Type |
---|---|
POST /defects | multipart/form-data |
Key | Value |
---|---|
defect1 | {"headline": "Headset jack broken","aircraftId": "B-3130","flightNumber": "BF-234","location": "18A","subject": "Headset Jack","type": "Broken","dateAdded": "2024-01-31T11:23:17.758Z","locationType": "IFE","status": "DRAFT", "createdBy":"Purser","comment":"Lorem ipsum dolor sit amet ...","additionalInfo":""} |
defect1File1 | file |
defect2 | {"headline": "Seat cushion missing", "aircraftId": "B-3130", "flightNumber": "BF-234", "location": "18C", "subject": "Seat Cushion", "type": "Missing", "dateAdded": "2024-01-31T11:23:17.758Z", "locationType": "SEATS", "status": "APPROVED", "createdBy":"Purser","comment":"Lorem ipsum dolor sit amet ...","additionalInfo":""} |
Key | Value |
---|---|
none | { "success": true, "message": "OK", "value": { "defect1": { "defect": { "id": "dd29a22c-9981-4ad8-80c1-19b1dfcb41d5", }, }, "defect2": { "defect": { "id": "8c227679-f4cb-436c-b6ba-85a87c0392e3", }, } } } |
Method | Content-Type |
---|---|
POST /defects/states | multipart/form-data |
Key | Value |
---|---|
defectIds | ["dd29a22c-9981-4ad8-80c1-19b1dfcb41d5", "ad29a22c-9981-4ad8-80c1-19b1dfcb41d6", "bd29a22c-9981-4ad8-80c1-19b1dfcb41d7"] |
Key | Value |
---|---|
none | { "success": true, "message": "OK", "value": [ { "status": "DRAFT", "id": "dd29a22c-9981-4ad8-80c1-19b1dfcb41d5" }, { "status": "PENDING", "id": "ad29a22c-9981-4ad8-80c1-19b1dfcb41d6" }, { "status": "APPROVED", "id": "bd29a22c-9981-4ad8-80c1-19b1dfcb41d7" } ] } |
Method | Content-Type |
---|---|
GET /crew | none |
Key | Value |
---|---|
none | { "success": true, "message": "OK", "value": [ { "id": "CR-12411", "role": "PURSER", "name": "Roman" }, { "id": "CR-12412", "role": "CABIN_CREW", "name": "AxTest" } ] } |