curl --request POST \
--url https://localhost:8080/api/receptionist/order \
--header 'Content-Type: application/json' \
--data '
{
"date": "2023-12-25",
"session": {
"id": 123,
"startTime": {
"hour": 123,
"minute": 123,
"second": 123,
"nano": 123
},
"endTime": {
"hour": 123,
"minute": 123,
"second": 123,
"nano": 123
}
},
"location": "<string>",
"latitude": 123,
"longitude": 123,
"cropType": {
"id": 123,
"name": "<string>"
},
"area": 2,
"orderStatus": "pending",
"paymentMethod": "cash",
"farmer": {
"id": 123,
"email": "<string>",
"fullName": "<string>",
"phoneNumber": "<string>",
"street": "<string>",
"city": "<string>",
"province": "<string>",
"postalCode": "<string>",
"expertise": "apprentice",
"role": "farmer",
"active": true
},
"receptionist": {
"id": 123,
"email": "<string>",
"fullName": "<string>",
"phoneNumber": "<string>",
"street": "<string>",
"city": "<string>",
"province": "<string>",
"postalCode": "<string>",
"expertise": "apprentice",
"role": "farmer",
"active": true
},
"paymentStatus": "pending",
"completionDate": "2023-12-25"
}
'{
"id": 123,
"farmer": {
"id": 123,
"email": "<string>",
"fullName": "<string>",
"phoneNumber": "<string>",
"street": "<string>",
"city": "<string>",
"province": "<string>",
"postalCode": "<string>",
"expertise": "apprentice",
"role": "farmer",
"active": true
},
"receptionist": {
"id": 123,
"email": "<string>",
"fullName": "<string>",
"phoneNumber": "<string>",
"street": "<string>",
"city": "<string>",
"province": "<string>",
"postalCode": "<string>",
"expertise": "apprentice",
"role": "farmer",
"active": true
},
"date": "2023-12-25",
"session": {
"id": 123,
"startTime": {
"hour": 123,
"minute": 123,
"second": 123,
"nano": 123
},
"endTime": {
"hour": 123,
"minute": 123,
"second": 123,
"nano": 123
}
},
"location": "<string>",
"latitude": 123,
"longitude": 123,
"cropType": {
"id": 123,
"name": "<string>"
},
"area": 123,
"cost": 123,
"orderStatus": "pending",
"paymentStatus": "pending",
"paymentMethod": "cash",
"completionDate": "2023-12-25",
"confirmed": true,
"creationDate": "2023-12-25"
}curl --request POST \
--url https://localhost:8080/api/receptionist/order \
--header 'Content-Type: application/json' \
--data '
{
"date": "2023-12-25",
"session": {
"id": 123,
"startTime": {
"hour": 123,
"minute": 123,
"second": 123,
"nano": 123
},
"endTime": {
"hour": 123,
"minute": 123,
"second": 123,
"nano": 123
}
},
"location": "<string>",
"latitude": 123,
"longitude": 123,
"cropType": {
"id": 123,
"name": "<string>"
},
"area": 2,
"orderStatus": "pending",
"paymentMethod": "cash",
"farmer": {
"id": 123,
"email": "<string>",
"fullName": "<string>",
"phoneNumber": "<string>",
"street": "<string>",
"city": "<string>",
"province": "<string>",
"postalCode": "<string>",
"expertise": "apprentice",
"role": "farmer",
"active": true
},
"receptionist": {
"id": 123,
"email": "<string>",
"fullName": "<string>",
"phoneNumber": "<string>",
"street": "<string>",
"city": "<string>",
"province": "<string>",
"postalCode": "<string>",
"expertise": "apprentice",
"role": "farmer",
"active": true
},
"paymentStatus": "pending",
"completionDate": "2023-12-25"
}
'{
"id": 123,
"farmer": {
"id": 123,
"email": "<string>",
"fullName": "<string>",
"phoneNumber": "<string>",
"street": "<string>",
"city": "<string>",
"province": "<string>",
"postalCode": "<string>",
"expertise": "apprentice",
"role": "farmer",
"active": true
},
"receptionist": {
"id": 123,
"email": "<string>",
"fullName": "<string>",
"phoneNumber": "<string>",
"street": "<string>",
"city": "<string>",
"province": "<string>",
"postalCode": "<string>",
"expertise": "apprentice",
"role": "farmer",
"active": true
},
"date": "2023-12-25",
"session": {
"id": 123,
"startTime": {
"hour": 123,
"minute": 123,
"second": 123,
"nano": 123
},
"endTime": {
"hour": 123,
"minute": 123,
"second": 123,
"nano": 123
}
},
"location": "<string>",
"latitude": 123,
"longitude": 123,
"cropType": {
"id": 123,
"name": "<string>"
},
"area": 123,
"cost": 123,
"orderStatus": "pending",
"paymentStatus": "pending",
"paymentMethod": "cash",
"completionDate": "2023-12-25",
"confirmed": true,
"creationDate": "2023-12-25"
}Show child attributes
Show child attributes
x >= 1pending, cancelled, confirmed, assigned, in_progress, completed cash, visa, mastercard Show child attributes
Show child attributes
pending, paid, failed OK
Show child attributes
Show child attributes
Show child attributes
Show child attributes
pending, cancelled, confirmed, assigned, in_progress, completed pending, paid, failed cash, visa, mastercard