App\Entity\Order
Resource Class
Resources
Order
| Resource |
ApiPlatform\Metadata\ApiResource {#691
#shortName: "Order"
#class: "App\Entity\Order"
#description: null
#urlGenerationStrategy: null
#deprecationReason: null
#normalizationContext: null
#denormalizationContext: null
#collectDenormalizationErrors: null
#validationContext: null
#filters: null
#elasticsearch: null
#mercure: null
#messenger: null
#input: null
#output: null
#order: null
#fetchPartial: null
#forceEager: null
#paginationEnabled: null
#paginationType: null
#paginationItemsPerPage: null
#paginationMaximumItemsPerPage: null
#paginationPartial: null
#paginationClientEnabled: null
#paginationClientItemsPerPage: null
#paginationClientPartial: null
#paginationFetchJoinCollection: null
#paginationUseOutputWalkers: null
#security: null
#securityMessage: null
#securityPostDenormalize: null
#securityPostDenormalizeMessage: null
#securityPostValidation: null
#securityPostValidationMessage: null
#provider: null
#processor: null
#stateOptions: null
#extraProperties: []
#operations: ApiPlatform\Metadata\Operations {#689 …}
#uriTemplate: null
#types: null
#formats: null
#inputFormats: null
#outputFormats: null
#uriVariables: [
"id" => ApiPlatform\Metadata\Link {#677
-parameterName: "id"
-fromProperty: null
-toProperty: null
-fromClass: "App\Entity\Order"
-toClass: null
-identifiers: [
"id"
]
-compositeIdentifier: null
-expandedValue: null
}
]
#routePrefix: null
#defaults: null
#requirements: null
#options: null
#stateless: null
#sunset: null
#acceptPatch: null
#status: null
#host: null
#schemes: null
#condition: null
#controller: null
#cacheHeaders: null
#hydraContext: null
#openapiContext: null
#openapi: null
#paginationViaCursor: null
#compositeIdentifier: null
#exceptionToStatus: null
#queryParameterValidationEnabled: null
#links: null
#graphQlOperations: []
} |
| Operations |
Attributes |
| _api_/orders_get_collection |
ApiPlatform\Metadata\GetCollection {#687
#shortName: "Order"
#class: "App\Entity\Order"
#description: null
#urlGenerationStrategy: null
#deprecationReason: null
#normalizationContext: null
#denormalizationContext: null
#collectDenormalizationErrors: null
#validationContext: null
#filters: []
#elasticsearch: null
#mercure: null
#messenger: null
#input: null
#output: null
#order: null
#fetchPartial: null
#forceEager: null
#paginationEnabled: null
#paginationType: null
#paginationItemsPerPage: null
#paginationMaximumItemsPerPage: null
#paginationPartial: null
#paginationClientEnabled: null
#paginationClientItemsPerPage: null
#paginationClientPartial: null
#paginationFetchJoinCollection: null
#paginationUseOutputWalkers: null
#security: null
#securityMessage: null
#securityPostDenormalize: null
#securityPostDenormalizeMessage: null
#securityPostValidation: null
#securityPostValidationMessage: null
#provider: "ApiPlatform\Doctrine\Orm\State\CollectionProvider"
#processor: "api_platform.doctrine.orm.state.persist_processor"
#stateOptions: null
#extraProperties: [
"standard_put" => true
"rfc_7807_compliant_errors" => true
"user_defined_uri_template" => true
]
#paginationViaCursor: null
#read: null
#deserialize: null
#validate: null
#write: null
#serialize: null
#priority: null
#name: "_api_/orders_get_collection"
#method: "GET"
#uriTemplate: "/orders"
#types: null
#formats: null
#inputFormats: [
"json" => [
"application/json"
]
"jsonld" => [
"application/ld+json"
]
"html" => [
"text/html"
]
"form" => [
"multipart/form-data"
]
]
#outputFormats: [
"json" => [
"application/json"
]
"jsonld" => [
"application/ld+json"
]
"html" => [
"text/html"
]
"form" => [
"multipart/form-data"
]
]
#uriVariables: []
#routePrefix: null
#routeName: null
#defaults: null
#requirements: null
#options: null
#stateless: true
#sunset: null
#acceptPatch: null
#status: null
#host: null
#schemes: null
#condition: null
#controller: "App\Controller\Api\Order\OrderApiController::getOrders"
#cacheHeaders: [
"vary" => [
"Content-Type"
"Authorization"
"Origin"
]
]
#hydraContext: null
#openapiContext: [
"summary" => "Find orders"
"description" => "This operation find orders"
"parameters" => [
[
"name" => "commercial"
"type" => "string"
"in" => "query"
"required" => false
"description" => "The commercial email who edited the order"
]
[
"name" => "deliveryMan"
"type" => "string"
"in" => "query"
"required" => false
"description" => "The deliveryMan email who make the order delivery"
]
[
"name" => "client"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Client email address"
]
[
"name" => "status"
"type" => "integer"
"in" => "query"
"required" => false
"description" => "Order status"
]
[
"name" => "updated"
"type" => "datetime"
"in" => "query"
"required" => false
"description" => "Order updated Y-m-d H:i:s"
]
[
"name" => "count"
"type" => "boolean"
"in" => "query"
"required" => false
"description" => "To indicate that we need a count result"
]
[
"name" => "limit"
"type" => "integer"
"in" => "query"
"required" => false
"description" => "Limit number of result"
]
]
"requestBody" => [
"content" => [
"application/json" => [
"example" => [
"commercial" => "The commercial email who edited the order"
"deliveryMan" => "The deliveryMan email who make the order delivery"
"client" => "Client email address"
"count" => "To indicate that we need a count result"
"status" => "The order status"
"updated" => "Order updated Y-m-d H:i:s"
"limit" => "Limit number of result"
]
]
]
]
"responses" => [
200 => [
"description" => "Successful response"
"content" => [
"application/json" => [
"example" => [
"message" => "HTTP_200"
"datas" => [
[
"id" => 4
"uid" => "MLS-2-2023"
"amount" => 125
"created" => "2023-11-06 12:39:02"
"deliverTo" => "2023-11-08 00:00:00"
"status" => 4
"commercial" => "admin@mellis.com"
"client" => [
"id" => 1
"username" => "admin@mellis.com"
"email" => "admin@mellis.com"
"roles" => [
"ROLE_ADMIN"
"ROLE_USER"
]
"addresses" => [
[
"address" => "72 rue Analakely"
"city" => "Antananarivo"
"zip" => "101"
"country" => "MG"
]
]
"firstName" => "Admin"
"lastName" => "Mellis"
"phone" => null
"photo" => null
"civility" => "Mr"
"latitude" => null
"longitude" => null
]
"localArea" => ""
"deliveryMan" => ""
"orderLines" => [
[
"id" => 11
"productName" => "Produit 1"
"productReference" => "xxxx"
"pu" => "10.00"
"quantity" => 10
"checkedForDelivery" => null
"checkedDelivered" => null
"isPackaging" => false
"connectionUid" => "Connection Uid"
"parentConnectionUid" => "Parent connection Uid"
"childs" => [
[
"id" => 11
"productName" => "Produit 1"
"productReference" => "xxxx"
"pu" => "10.00"
"quantity" => 10
"checkedForDelivery" => null
"checkedDelivered" => null
"isPackaging" => false
"connectionUid" => "Connection Uid"
"parentConnectionUid" => "Parent connection Uid"
]
]
]
]
]
[
"id" => 3
"uid" => "MLS-1-2023"
"amount" => 125
"created" => "2023-11-06 12:38:46"
"deliverTo" => "2023-10-31 00:00:00"
"status" => 11
"commercial" => "admin@mellis.com"
"client" => [
"id" => 1
"username" => "admin@mellis.com"
"email" => "admin@mellis.com"
"roles" => [
"ROLE_ADMIN"
"ROLE_USER"
]
"addresses" => [
[
"address" => "72 rue Analakely"
"city" => "Antananarivo"
"zip" => "101"
"country" => "MG"
]
]
"firstName" => "Admin"
"lastName" => "Mellis"
"phone" => null
"photo" => null
"civility" => "Mr"
"latitude" => null
"longitude" => null
]
"localArea" => ""
"deliveryMan" => ""
"orderLines" => [
[
"id" => 10
"productName" => "Produit 2"
"productReference" => "xxxx"
"pu" => "5.00"
"quantity" => 5
"checkedForDelivery" => null
"checkedDelivered" => null
"isPackaging" => false
"connectionUid" => "Connection Uid"
"parentConnectionUid" => "Parent connection Uid"
"childs" => []
]
[
"id" => 9
"productName" => "Produit 1"
"productReference" => "xxxx"
"pu" => "10.00"
"quantity" => 10
"checkedForDelivery" => true
"checkedDelivered" => null
"isPackaging" => true
"connectionUid" => "Connection Uid"
"parentConnectionUid" => "Parent connection Uid"
"childs" => [
[
"id" => 11
"productName" => "Produit 1"
"productReference" => "xxxx"
"pu" => "10.00"
"quantity" => 10
"checkedForDelivery" => null
"checkedDelivered" => null
"isPackaging" => false
"connectionUid" => "Connection Uid"
"parentConnectionUid" => "Parent connection Uid"
]
]
]
]
]
]
]
]
]
]
]
]
#openapi: null
#exceptionToStatus: null
#queryParameterValidationEnabled: null
#links: null
-itemUriTemplate: null
} |
| _api_/orders/{id}_get |
ApiPlatform\Metadata\Get {#685
#shortName: "Order"
#class: "App\Entity\Order"
#description: null
#urlGenerationStrategy: null
#deprecationReason: null
#normalizationContext: null
#denormalizationContext: null
#collectDenormalizationErrors: null
#validationContext: null
#filters: []
#elasticsearch: null
#mercure: null
#messenger: null
#input: null
#output: null
#order: null
#fetchPartial: null
#forceEager: null
#paginationEnabled: null
#paginationType: null
#paginationItemsPerPage: null
#paginationMaximumItemsPerPage: null
#paginationPartial: null
#paginationClientEnabled: null
#paginationClientItemsPerPage: null
#paginationClientPartial: null
#paginationFetchJoinCollection: null
#paginationUseOutputWalkers: null
#security: null
#securityMessage: null
#securityPostDenormalize: null
#securityPostDenormalizeMessage: null
#securityPostValidation: null
#securityPostValidationMessage: null
#provider: "ApiPlatform\Doctrine\Orm\State\ItemProvider"
#processor: "api_platform.doctrine.orm.state.persist_processor"
#stateOptions: null
#extraProperties: [
"standard_put" => true
"rfc_7807_compliant_errors" => true
"user_defined_uri_template" => true
]
#paginationViaCursor: null
#read: null
#deserialize: null
#validate: null
#write: null
#serialize: null
#priority: null
#name: "_api_/orders/{id}_get"
#method: "GET"
#uriTemplate: "/orders/{id}"
#types: null
#formats: null
#inputFormats: [
"json" => [
"application/json"
]
"jsonld" => [
"application/ld+json"
]
"html" => [
"text/html"
]
"form" => [
"multipart/form-data"
]
]
#outputFormats: [
"json" => [
"application/json"
]
"jsonld" => [
"application/ld+json"
]
"html" => [
"text/html"
]
"form" => [
"multipart/form-data"
]
]
#uriVariables: [
"id" => ApiPlatform\Metadata\Link {#683
-parameterName: "id"
-fromProperty: null
-toProperty: null
-fromClass: "App\Entity\Order"
-toClass: null
-identifiers: [
"id"
]
-compositeIdentifier: null
-expandedValue: null
}
]
#routePrefix: null
#routeName: null
#defaults: null
#requirements: null
#options: null
#stateless: true
#sunset: null
#acceptPatch: null
#status: null
#host: null
#schemes: null
#condition: null
#controller: "App\Controller\Api\Order\OrderApiController::getOrderById"
#cacheHeaders: [
"vary" => [
"Content-Type"
"Authorization"
"Origin"
]
]
#hydraContext: null
#openapiContext: [
"summary" => "Get order"
"description" => "This operation get order"
"responses" => [
200 => [
"description" => "Successful response"
"content" => [
"application/json" => [
"example" => [
"message" => "HTTP_200"
"datas" => [
"id" => "3"
"uid" => "MLS-1-2023"
"amount" => "125"
"created" => "2023-11-06 12:38:46"
"deliverTo" => "2023-10-31 00:00:00"
"status" => "11"
"commercial" => "xxx@mellis.com"
"client" => [
"id" => "1"
"username" => "xxx@mellis.com"
"email" => "xxx@mellis.com"
"roles" => [
"ROLE_ADMIN"
"ROLE_USER"
]
"addresses" => [
[
"address" => "72 rue Analakely"
"city" => "Antananarivo"
"zip" => "101"
"country" => "MG"
]
]
"firstName" => "Admin"
"lastName" => "Mellis"
"phone" => null
"photo" => null
"civility" => "Mr"
"latitude" => null
"longitude" => null
]
"localArea" => ""
"deliveryMan" => ""
"orderLines" => [
[
"id" => "10"
"productName" => "Produit 2"
"productReference" => "xxxx"
"pu" => "5.00"
"quantity" => "5"
"checkedForDelivery" => null
"checkedDelivered" => null
"isPackaging" => false
"connectionUid" => "Connection Uid"
"parentConnectionUid" => "Parent connection Uid"
"childs" => [
[
"id" => 11
"productName" => "Produit 1"
"productReference" => "xxxx"
"pu" => "10.00"
"quantity" => 10
"checkedForDelivery" => null
"checkedDelivered" => null
"isPackaging" => false
"connectionUid" => "Connection Uid"
"parentConnectionUid" => "Parent connection Uid"
]
]
]
[
"id" => "9"
"productName" => "Produit 1"
"productReference" => "xxxx"
"pu" => "10.00"
"quantity" => "10"
"checkedForDelivery" => true
"checkedDelivered" => null
"isPackaging" => true
"connectionUid" => "Connection Uid"
"parentConnectionUid" => "Parent connection Uid"
"childs" => []
]
]
]
]
]
]
]
]
]
#openapi: null
#exceptionToStatus: null
#queryParameterValidationEnabled: null
#links: null
} |
| _api_/orders_post |
ApiPlatform\Metadata\Post {#681
#shortName: "Order"
#class: "App\Entity\Order"
#description: null
#urlGenerationStrategy: null
#deprecationReason: null
#normalizationContext: null
#denormalizationContext: null
#collectDenormalizationErrors: null
#validationContext: null
#filters: []
#elasticsearch: null
#mercure: null
#messenger: null
#input: [
"class" => "App\DTO\Api\Order\OrderDTO"
"name" => "OrderDTO"
]
#output: [
"class" => "App\Entity\Order"
"name" => "Order"
]
#order: null
#fetchPartial: null
#forceEager: null
#paginationEnabled: null
#paginationType: null
#paginationItemsPerPage: null
#paginationMaximumItemsPerPage: null
#paginationPartial: null
#paginationClientEnabled: null
#paginationClientItemsPerPage: null
#paginationClientPartial: null
#paginationFetchJoinCollection: null
#paginationUseOutputWalkers: null
#security: null
#securityMessage: null
#securityPostDenormalize: null
#securityPostDenormalizeMessage: null
#securityPostValidation: null
#securityPostValidationMessage: null
#provider: "ApiPlatform\Doctrine\Orm\State\ItemProvider"
#processor: "api_platform.doctrine.orm.state.persist_processor"
#stateOptions: null
#extraProperties: [
"standard_put" => true
"rfc_7807_compliant_errors" => true
"user_defined_uri_template" => true
]
#paginationViaCursor: null
#read: null
#deserialize: null
#validate: null
#write: null
#serialize: null
#priority: null
#name: "_api_/orders_post"
#method: "POST"
#uriTemplate: "/orders"
#types: null
#formats: null
#inputFormats: [
"json" => [
"application/json"
]
"jsonld" => [
"application/ld+json"
]
"html" => [
"text/html"
]
"form" => [
"multipart/form-data"
]
]
#outputFormats: [
"json" => [
"application/json"
]
"jsonld" => [
"application/ld+json"
]
"html" => [
"text/html"
]
"form" => [
"multipart/form-data"
]
]
#uriVariables: []
#routePrefix: null
#routeName: null
#defaults: null
#requirements: null
#options: null
#stateless: true
#sunset: null
#acceptPatch: null
#status: null
#host: null
#schemes: null
#condition: null
#controller: "App\Controller\Api\Order\OrderApiController::addOrder"
#cacheHeaders: [
"vary" => [
"Content-Type"
"Authorization"
"Origin"
]
]
#hydraContext: null
#openapiContext: [
"summary" => "Create order"
"description" => "This operation create order"
"parameters" => [
[
"name" => "client"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Client email address"
]
[
"name" => "deliverTo"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Date for delivery"
]
[
"name" => "status"
"type" => "integer"
"in" => "query"
"required" => true
"description" => "Status of order"
]
[
"name" => "localArea"
"type" => "integer"
"in" => "query"
"required" => true
"description" => "Local area of order"
]
[
"name" => "saleType"
"type" => "integer"
"in" => "query"
"required" => false
"description" => "Sale type"
]
[
"name" => "orderLines"
"type" => "array"
"in" => "query"
"required" => true
"description" => "Order lines"
]
[
"name" => "longitude"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Position MAP longitude of customer"
]
[
"name" => "created"
"type" => "datetime"
"in" => "query"
"required" => false
"description" => "Order created Y-m-d H:i:s"
]
[
"name" => "latitude"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Position MAP latitude of customer"
]
]
"requestBody" => [
"content" => [
"application/json" => [
"example" => [
"client" => "Client email address"
"deliverTo" => "Date for delivery"
"status" => "Order status"
"localArea" => "Local area of order"
"saleType" => "Sale type"
"created" => "Order created Y-m-d H:i:s"
"longitude" => "Position MAP longitude of user"
"latitude" => "Position MAP latitude of user"
"orderLines" => [
[
"productName" => "Produit 1"
"productReference" => "xxxx"
"pu" => 10
"quantity" => 10
"isPackaging" => false
"connectionUid" => ""
"parentConnectionUid" => ""
]
[
"productName" => "Produit 2"
"productReference" => "xxxx"
"pu" => 10
"quantity" => 5
"isPackaging" => false
"connectionUid" => ""
"parentConnectionUid" => ""
]
]
]
]
]
]
"responses" => [
200 => [
"description" => "Successful response"
"content" => [
"application/json" => [
"example" => [
"message" => "Successful response"
]
]
]
]
]
]
#openapi: null
#exceptionToStatus: null
#queryParameterValidationEnabled: null
#links: null
-itemUriTemplate: null
} |
| _api_/orders_put |
ApiPlatform\Metadata\Put {#679
#shortName: "Order"
#class: "App\Entity\Order"
#description: null
#urlGenerationStrategy: null
#deprecationReason: null
#normalizationContext: null
#denormalizationContext: null
#collectDenormalizationErrors: null
#validationContext: null
#filters: []
#elasticsearch: null
#mercure: null
#messenger: null
#input: [
"class" => "App\DTO\Api\Order\OrderDTO"
"name" => "OrderDTO"
]
#output: [
"class" => "App\Entity\Order"
"name" => "Order"
]
#order: null
#fetchPartial: null
#forceEager: null
#paginationEnabled: null
#paginationType: null
#paginationItemsPerPage: null
#paginationMaximumItemsPerPage: null
#paginationPartial: null
#paginationClientEnabled: null
#paginationClientItemsPerPage: null
#paginationClientPartial: null
#paginationFetchJoinCollection: null
#paginationUseOutputWalkers: null
#security: null
#securityMessage: null
#securityPostDenormalize: null
#securityPostDenormalizeMessage: null
#securityPostValidation: null
#securityPostValidationMessage: null
#provider: "ApiPlatform\Doctrine\Orm\State\ItemProvider"
#processor: "api_platform.doctrine.orm.state.persist_processor"
#stateOptions: null
#extraProperties: [
"standard_put" => true
"rfc_7807_compliant_errors" => true
"user_defined_uri_template" => true
]
#paginationViaCursor: null
#read: null
#deserialize: null
#validate: null
#write: null
#serialize: null
#priority: null
#name: "_api_/orders_put"
#method: "PUT"
#uriTemplate: "/orders"
#types: null
#formats: null
#inputFormats: [
"json" => [
"application/json"
]
"jsonld" => [
"application/ld+json"
]
"html" => [
"text/html"
]
"form" => [
"multipart/form-data"
]
]
#outputFormats: [
"json" => [
"application/json"
]
"jsonld" => [
"application/ld+json"
]
"html" => [
"text/html"
]
"form" => [
"multipart/form-data"
]
]
#uriVariables: []
#routePrefix: null
#routeName: null
#defaults: null
#requirements: null
#options: null
#stateless: true
#sunset: null
#acceptPatch: null
#status: null
#host: null
#schemes: null
#condition: null
#controller: "App\Controller\Api\Order\OrderApiController::updateOrder"
#cacheHeaders: [
"vary" => [
"Content-Type"
"Authorization"
"Origin"
]
]
#hydraContext: null
#openapiContext: [
"summary" => "Update order"
"description" => "This operation update order"
"parameters" => [
[
"name" => "id"
"type" => "integer"
"in" => "query"
"required" => true
"description" => "Id of order"
]
[
"name" => "targetClient"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Client email address"
]
[
"name" => "deliverTo"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Date for delivery"
]
[
"name" => "status"
"type" => "integer"
"in" => "query"
"required" => true
"description" => "Status of order"
]
[
"name" => "orderLines"
"type" => "array"
"in" => "query"
"required" => true
"description" => "Order lines"
]
[
"name" => "localArea"
"type" => "integer"
"in" => "query"
"required" => true
"description" => "Local area of order"
]
]
"requestBody" => [
"content" => [
"application/json" => [
"example" => [
"id" => "Id of order"
"client" => "Client email address"
"deliverTo" => "Date for delivery"
"status" => "Order status"
"localArea" => "Local area of order"
"orderLines" => [
[
"id" => 1
"productName" => "Produit 1"
"productReference" => "xxxx"
"pu" => 10
"quantity" => 10
"isPackaging" => false
]
[
"id" => 2
"productName" => "Produit 2"
"productReference" => "xxxx"
"pu" => 10
"quantity" => 5
"isPackaging" => false
]
[
"productName" => "Produit 1"
"productReference" => "xxxx"
"pu" => 10
"quantity" => 10
"isPackaging" => true
]
]
]
]
]
]
"responses" => [
200 => [
"description" => "Successful response"
"content" => [
"application/json" => [
"example" => [
"message" => "Successful response"
]
]
]
]
]
]
#openapi: null
#exceptionToStatus: null
#queryParameterValidationEnabled: null
#links: null
-allowCreate: null
} |
| Filters |
|
|
No available filter declared for this resource.
|