Save operations for a dealer
This Java function saves operations for a dealer and includes authorization, logging, error handling, and response generation logic.
Path Parameters
The dealerUUID
parameter in the saveOperation
method represents the unique identifier of the
dealer for whom the operations are being saved. It is extracted from the path variable in the request URL.
Query Parameters
The operationType
parameter in the saveOperation
method represents the type of operation
that is being saved for a dealer. It is a required parameter and is expected to be provided as a request parameter
in the POST request to the endpoint defined by the @PostMapping
annotation. The `operation
Request Body required
The saveOperationRequest
parameter in the saveOperation
method is of type
SaveOperationRequest
. It is annotated with @RequestBody
, which means that the data for this parameter will be
extracted from the request body of the HTTP request.
- Array [
- ]
- Array [
- ]
operationDTO object
vehicleMileageConfigDTOList object[]
brandDTO object
dailyLimitConfigDTOList object[]
Possible values: [OPCODE
, SERVICEMENU
, SERVICEMOTORSMAINTENANCEMENU
, SERVICEMOTORSLINEITEM
, SERVICEMOTORSINDICATOR
]
- 200
- 400
- 401
- 403
- 500
The method is returning a ResponseEntity
object containing a SaveOperationResponse
entity.
Schema
- Array [
- ]
- Array [
- ]
errors object[]
warnings object[]
{
"errors": [
{
"errorName": "string",
"errorMessage": "string",
"errorCode": 0
}
],
"warnings": [
{
"warningCode": "string",
"warningTitle": "string",
"warningMessage": "string"
}
],
"statusCode": 0,
"apiRequestId": "string",
"uuid": "string",
"operationType": "string"
}
Bad Request
Schema
- Array [
- ]
- Array [
- ]
errors object[]
warnings object[]
{
"errors": [
{
"errorName": "string",
"errorMessage": "string",
"errorCode": 0
}
],
"warnings": [
{
"warningCode": "string",
"warningTitle": "string",
"warningMessage": "string"
}
],
"statusCode": 0,
"apiRequestId": "string"
}
Unauthorized
Schema
- Array [
- ]
- Array [
- ]
errors object[]
warnings object[]
{
"errors": [
{
"errorName": "string",
"errorMessage": "string",
"errorCode": 0
}
],
"warnings": [
{
"warningCode": "string",
"warningTitle": "string",
"warningMessage": "string"
}
],
"statusCode": 0,
"apiRequestId": "string"
}
Forbidden
Schema
- Array [
- ]
- Array [
- ]
errors object[]
warnings object[]
{
"errors": [
{
"errorName": "string",
"errorMessage": "string",
"errorCode": 0
}
],
"warnings": [
{
"warningCode": "string",
"warningTitle": "string",
"warningMessage": "string"
}
],
"statusCode": 0,
"apiRequestId": "string"
}
Internal Server Error
Schema
- Array [
- ]
- Array [
- ]
errors object[]
warnings object[]
{
"errors": [
{
"errorName": "string",
"errorMessage": "string",
"errorCode": 0
}
],
"warnings": [
{
"warningCode": "string",
"warningTitle": "string",
"warningMessage": "string"
}
],
"statusCode": 0,
"apiRequestId": "string"
}