App\Entity\User
Resource Class
Resources
User
| Resource |
ApiPlatform\Metadata\ApiResource {#691
#shortName: "User"
#class: "App\Entity\User"
#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\User"
-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_/users_get_collection |
ApiPlatform\Metadata\GetCollection {#687
#shortName: "User"
#class: "App\Entity\User"
#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_/users_get_collection"
#method: "GET"
#uriTemplate: "/users"
#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\User\UserApiController::getUsers"
#cacheHeaders: [
"vary" => [
"Content-Type"
"Authorization"
"Origin"
]
]
#hydraContext: null
#openapiContext: [
"summary" => "Get users"
"description" => "This operation find users"
"parameters" => [
[
"name" => "type"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Type of user : customer/commercial/delivery"
]
[
"name" => "query"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Query search to find user"
]
[
"name" => "count"
"type" => "boolean"
"in" => "query"
"required" => false
"description" => "To indicate that we need a count result"
]
[
"name" => "localArea"
"type" => "integer"
"in" => "query"
"required" => false
"description" => "Local area of client"
]
[
"name" => "limit"
"type" => "integer"
"in" => "query"
"required" => false
"description" => "Limit number of result"
]
[
"name" => "sageId"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Sage ID of user"
]
]
"requestBody" => [
"content" => [
"application/json" => [
"example" => [
"type" => "Type of user : customer/commercial/delivery"
"query" => "Query search to find user"
"count" => "To indicate that we need a count result"
"localArea" => "Local area of client : 1 or 1,2,3"
"limit" => "Limit number of result"
"sageId" => "ux1e895s"
]
]
]
]
"responses" => [
200 => [
"description" => "Successful response"
"content" => [
"application/json" => [
"example" => [
"message" => "HTTP_200"
"datas" => [
[
"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" => [
"id" => 13
"name" => "Antananarivo"
"local" => 1
]
]
[
"id" => 2
"username" => "admin+2@mellis.com"
"email" => "admin+2@mellis.com"
"roles" => [
"ROLE_ADMIN"
"ROLE_COMMERCIAL"
"ROLE_DELIVERY"
"ROLE_USER"
]
"addresses" => [
[
"address" => "12 rue Andravoahangy"
"city" => "Tananarive"
"zip" => "101"
"country" => "MG"
]
]
"firstName" => "Admin2"
"lastName" => "Mellis"
"phone" => null
"photo" => null
"civility" => "Mr"
"latitude" => null
"longitude" => null
"localArea" => [
"id" => 13
"name" => "Antananarivo"
"local" => 1
]
]
]
]
]
]
]
]
]
#openapi: null
#exceptionToStatus: null
#queryParameterValidationEnabled: null
#links: null
-itemUriTemplate: null
} |
| _api_/users/{id}_get |
ApiPlatform\Metadata\Get {#685
#shortName: "User"
#class: "App\Entity\User"
#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_/users/{id}_get"
#method: "GET"
#uriTemplate: "/users/{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\User"
-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\User\UserApiController::getUserById"
#cacheHeaders: [
"vary" => [
"Content-Type"
"Authorization"
"Origin"
]
]
#hydraContext: null
#openapiContext: [
"summary" => "Get users"
"description" => "This operation find users"
"responses" => [
200 => [
"description" => "Successful response"
"content" => [
"application/json" => [
"example" => [
"message" => "HTTP_200"
"datas" => [
"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" => [
"id" => 13
"name" => "Antananarivo"
"local" => 1
]
]
]
]
]
]
]
]
#openapi: null
#exceptionToStatus: null
#queryParameterValidationEnabled: null
#links: null
} |
| _api_/users_post |
ApiPlatform\Metadata\Post {#681
#shortName: "User"
#class: "App\Entity\User"
#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\User\UserDTO"
"name" => "UserDTO"
]
#output: [
"class" => "App\Entity\User"
"name" => "User"
]
#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_/users_post"
#method: "POST"
#uriTemplate: "/users"
#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\User\UserApiController::addUser"
#cacheHeaders: [
"vary" => [
"Content-Type"
"Authorization"
"Origin"
]
]
#hydraContext: null
#openapiContext: [
"summary" => "Create user"
"description" => "This operation create user"
"parameters" => [
[
"name" => "firstName"
"type" => "string"
"in" => "query"
"required" => true
"description" => "First name of user"
]
[
"name" => "lastName"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Last name of user"
]
[
"name" => "email"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Email address of user"
]
[
"name" => "phone"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Phone number of user"
]
[
"name" => "address"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Address of user"
]
[
"name" => "city"
"type" => "string"
"in" => "query"
"required" => true
"description" => "City of user"
]
[
"name" => "zip"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Zip code of user"
]
[
"name" => "longitude"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Position MAP longitude of user"
]
[
"name" => "latitude"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Position MAP latitude of user"
]
[
"name" => "localArea"
"type" => "integer"
"in" => "query"
"required" => false
"description" => "Local area of client"
]
[
"name" => "localAreaSageId"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Local area SageID of client"
]
[
"name" => "sageId"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Sage ID of user"
]
]
"requestBody" => [
"content" => [
"application/json" => [
"example" => [
"firstName" => "First name of user"
"lastName" => "Last name of user"
"email" => "Email address of user"
"phone" => "Phone number of user"
"address" => "Address of user"
"city" => "City of user"
"zip" => "Zip code od client"
"longitude" => "Position MAP longitude of user"
"latitude" => "Position MAP latitude of user"
"localArea" => "Local area of client"
"localAreaSageId" => "Local area SageID of client"
"sageId" => "Sage ID of user"
]
]
]
]
"responses" => [
200 => [
"description" => "Successful response"
"content" => [
"application/json" => [
"example" => [
"message" => "Successful response"
]
]
]
]
]
]
#openapi: null
#exceptionToStatus: null
#queryParameterValidationEnabled: null
#links: null
-itemUriTemplate: null
} |
| _api_/users_put |
ApiPlatform\Metadata\Put {#679
#shortName: "User"
#class: "App\Entity\User"
#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\User\UserDTO"
"name" => "UserDTO"
]
#output: [
"class" => "App\Entity\User"
"name" => "User"
]
#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_/users_put"
#method: "PUT"
#uriTemplate: "/users"
#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\User\UserApiController::updateUser"
#cacheHeaders: [
"vary" => [
"Content-Type"
"Authorization"
"Origin"
]
]
#hydraContext: null
#openapiContext: [
"summary" => "Update user"
"description" => "This operation update user"
"parameters" => [
[
"name" => "id"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Id of user"
]
[
"name" => "firstName"
"type" => "string"
"in" => "query"
"required" => true
"description" => "First name of user"
]
[
"name" => "lastName"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Last name of user"
]
[
"name" => "email"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Email address of user"
]
[
"name" => "phone"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Phone number of user"
]
[
"name" => "address"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Address of user"
]
[
"name" => "city"
"type" => "string"
"in" => "query"
"required" => true
"description" => "City of user"
]
[
"name" => "zip"
"type" => "string"
"in" => "query"
"required" => true
"description" => "Zip code of user"
]
[
"name" => "longitude"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Position MAP longitude of user"
]
[
"name" => "latitude"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Position MAP latitude of user"
]
[
"name" => "password"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Password of user"
]
[
"name" => "sageId"
"type" => "string"
"in" => "query"
"required" => false
"description" => "Sage ID of user"
]
]
"requestBody" => [
"content" => [
"application/json" => [
"example" => [
"id" => "Id of user"
"firstName" => "First name of user"
"lastName" => "Last name of user"
"email" => "Email address of user"
"phone" => "Phone number of user"
"address" => "Address of user"
"city" => "City of user"
"zip" => "Zip code od client"
"longitude" => "Position MAP longitude of user"
"latitude" => "Position MAP latitude of user"
"password" => "Password of user"
"sageId" => "Sage ID of user"
]
]
]
]
"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.
|