Feat(booking): Added updateBookingStatus
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
This commit is contained in:
@@ -148,6 +148,51 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/ktmtrainbot/booking/{bookingID}/{status}": {
|
||||
"put": {
|
||||
"description": "Description",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"ktmtrainbot Booking"
|
||||
],
|
||||
"summary": "Changing booking status",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Booking ID",
|
||||
"name": "bookingID",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Status",
|
||||
"name": "status",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ktmtrainbot.BookingResponse"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/common.ErrResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/ktmtrainbot/current-time": {
|
||||
"get": {
|
||||
"description": "Description",
|
||||
|
||||
Reference in New Issue
Block a user