This commit is contained in:
2026-04-07 14:45:29 +03:00
parent c47f7c1b6a
commit 38ef10da4d
11 changed files with 1006 additions and 13 deletions
+249
View File
@@ -24549,6 +24549,255 @@
}
}
},
"/api/job-cards/{id}/check-in": {
"post": {
"tags": [
"Job Cards"
],
"summary": "POST /api/job-cards/{id}/check-in",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"check_in_date": {
"type": "string"
},
"check_in_time": {
"type": "string"
},
"km_in": {
"type": "integer"
},
"fuel_level": {
"type": "string"
},
"start_date": {
"type": "string"
},
"start_time": {
"type": "string"
},
"department_id": {
"type": "integer"
},
"delivery_date": {
"type": "string"
},
"delivery_time": {
"type": "string"
}
}
},
"example": {
"check_in_date": "2026-04-07",
"check_in_time": "09:30",
"km_in": 50321,
"fuel_level": "half",
"start_date": "2026-04-07",
"start_time": "10:00",
"department_id": 1,
"delivery_date": "2026-04-08",
"delivery_time": "17:15"
}
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"status": {
"type": "string"
},
"check_in_date": {
"type": "string",
"format": "date-time"
},
"check_in_time": {
"type": "string"
},
"km_in": {
"type": "integer"
},
"fuel_level": {
"type": "string"
},
"start_date": {
"type": "string",
"format": "date-time"
},
"start_time": {
"type": "string"
},
"department_id": {
"type": "integer"
},
"delivery_date": {
"type": "string",
"format": "date-time"
},
"delivery_time": {
"type": "string"
}
}
}
}
},
"example": {
"message": "Job card checked in successfully.",
"data": {
"id": 1,
"status": "check_in",
"check_in_date": "2026-04-07T00:00:00.000000Z",
"check_in_time": "09:30:00",
"km_in": 50321,
"fuel_level": "half",
"start_date": "2026-04-07T00:00:00.000000Z",
"start_time": "10:00:00",
"department_id": 1,
"delivery_date": "2026-04-08T00:00:00.000000Z",
"delivery_time": "17:15:00"
}
}
}
}
}
}
}
},
"/api/job-cards/{id}/delivery": {
"post": {
"tags": [
"Job Cards"
],
"summary": "POST /api/job-cards/{id}/delivery",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"check_out_date": {
"type": "string"
},
"check_out_time": {
"type": "string"
},
"km_out": {
"type": "integer"
},
"fuel_level": {
"type": "string"
},
"department_id": {
"type": "integer"
}
}
},
"example": {
"check_out_date": "2026-04-08",
"check_out_time": "17:15",
"km_out": 50480,
"fuel_level": "quarter",
"department_id": 1
}
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"status": {
"type": "string"
},
"check_out_date": {
"type": "string"
},
"check_out_time": {
"type": "string"
},
"km_out": {
"type": "integer"
},
"fuel_level": {
"type": "string"
},
"department_id": {
"type": "integer"
}
}
}
}
},
"example": {
"message": "Job card marked as delivered successfully.",
"data": {
"id": 1,
"status": "delivered",
"check_out_date": "2026-04-08",
"check_out_time": "17:15:00",
"km_out": 50480,
"fuel_level": "quarter",
"department_id": 1
}
}
}
}
}
}
}
},
"/api/job-cards/{id}/add-customer-remark": {
"post": {
"tags": [