POST https://mellis-command.mypreprod.xyz/api/users

UserApiController :: addUser

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_api_operation
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_operation_name
"_api_/users_post"
_api_platform_links
Symfony\Component\WebLink\GenericLinkProvider {#1951
  -links: [
    1949 => Symfony\Component\WebLink\Link {#1949
      -href: "https://mellis-command.mypreprod.xyz/api/docs.jsonld"
      -rel: [
        "http://www.w3.org/ns/hydra/core#apiDocumentation" => "http://www.w3.org/ns/hydra/core#apiDocumentation"
      ]
      -attributes: []
    }
  ]
}
_api_resource_class
"App\Entity\User"
_controller
"App\Controller\Api\User\UserApiController::addUser"
_firewall_context
"security.firewall.map.context.main"
_format
null
_route
"_api_/users_post"
_route_params
[
  "_format" => null
  "_stateless" => true
  "_api_resource_class" => "App\Entity\User"
  "_api_operation_name" => "_api_/users_post"
]
_security_firewall_run
"_security_main"
_stateless
true
_stopwatch_token
"a2c438"
data
App\DTO\Api\User\UserDTO {#792
  +id: null
  +latitude: null
  +longitude: null
  +firstName: "-"
  +lastName: "Barre/T"
  +email: "DTL0009915@mellis.com"
  +username: null
  +address: "iaviloha"
  +city: "ALM - S01"
  +zip: "-"
  +phone: "-"
  +photo: null
  +password: null
  +localArea: null
  +localAreaSageId: "3"
  +sageId: "21459_DTL0009915"
}

Request Headers

Header Value
accept
"*/*"
accept-encoding
"deflate, gzip, br"
authorization
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3NzIyNDU0MTcsImV4cCI6MTc3MjI4MTQxNywicm9sZXMiOlsiUk9MRV9BRE1JTiIsIlJPTEVfVVNFUiJdLCJ1c2VybmFtZSI6IjQxNWE3ODc1ZmEwODQxODQ2cUBtZWxpcy5jb20ifQ.UEQR-4iVtfGqbBG0AhFUQmgjdwMWgcj_iQZOQA9cRP-Dxc4CVXkmITBfi4JAvdLe9c8iv5YZaZ9-1XO0i5vKUfqDGoe1xz4ZyX7pL9whwZb54BgkaQF9AjN2QpkUXf6VqHCJkngXjZR3PNk-dGViUxCQkK6Pu7lulcf8n4nUdclGVgMFPs7Wg1CsxFVE8Ua0qjoGVbECZ-o0j1AqXdIO5tJ0lz1a8w4Sw-h8FAkm-NJjsuWat1azczgU5FxiEdj2Ijs-PiCm8eQFwEnG0RbgsHalGMqp4H2mbyHuT5iVd0Xum1NbKkAg8TRTCQ3H5kxGkzTF1Z7sI-83S9qFY2FCKcMQf74Ekn1BGtaGszcXUqzeIoF1F0oc0R6K5M0VDyDpcA-25NkseP-QtKDGZ9NpLu-V0ubsMD--dUifRxOOs1oHGTSZjFoqBTL4-i_FJtaaIMWU0zeYgn1PLTR0rEnqm6npdxUeguClBTBzH4pFBP7VzloptKTnGH067ghQe0KFxCyBm7F1F9vRNFiPMPQV7YM0Ewu1kly4AaGtiezbHubfmF77PgMjdxbxC6w8hykKJvEbuoUBKFqT912b1VymH2MIOK0UJatLfTRY837sSSREE9TtEzr-maOVCgKsBpLhqcPhfLG9P6u9UtR3LbUhw44lXk8BCcGuplcnYpx5C90"
content-length
"183"
content-type
"application/json"
host
"mellis-command.mypreprod.xyz"
x-php-ob-level
"1"

Request Content

Pretty

{
    "firstName": "-",
    "lastName": "Barre\/T",
    "email": "DTL0009915@mellis.com",
    "phone": "-",
    "address": "iaviloha",
    "city": "ALM - S01",
    "zip": "-",
    "localAreaSageId": "3",
    "sageId": "21459_DTL0009915"
}

Raw

{"firstName":"-","lastName":"Barre\/T","email":"DTL0009915@mellis.com","phone":"-","address":"iaviloha","city":"ALM - S01","zip":"-","localAreaSageId":"3","sageId":"21459_DTL0009915"}

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"application/json"
date
"Sat, 28 Feb 2026 02:23:44 GMT"
x-debug-token
"e38637"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

Session

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

0 Usages
Stateless check enabled

Session not used.

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_ADDRESS_CITY
"Antananarivo"
APP_ADDRESS_COUNTRY
"Madagascar"
APP_ADDRESS_STREET
"12 rue"
APP_ADDRESS_ZIP
"101"
APP_BANK_IBAN
"ETD95476213874685"
APP_BANK_NAME
"BMOI"
APP_BANK_SWIFT_CODE
"BR91905"
APP_CONTACT_EMAIL
"lrabarison@myagency.mg"
APP_CONTACT_PHONE
"334852315"
APP_ENV
"dev"
APP_NAME
"Mellis Trading"
APP_ORDER_NUM_PREFIX
"MT"
APP_ORDER_NUM_SUFIX
"COM."
APP_SECRET
"b23da7198205415f19707bcdc04a9e9f"
APP_VAT
"20"
CORS_ALLOW_ORIGIN
"*"
DATABASE_URL
"postgresql://mellis:is1hsjkfgMLS2023!@127.0.0.1:5432/mellis?serverVersion=15&charset=utf8"
GOOGLE_MAP_KEY
"AIzaSyDtw_SSMaa2wQLtu8R2vv9w-M_7I36KtCk"
HUB_BASE_URL
"http://mellis-hub.loc"
HUB_KEY_CLIENT
"415a7875fa084184@melis.com"
HUB_KEY_SECRET
"84ca901ccd82412f"
JWT_PASSPHRASE
"fdc3b7b8f51fa506b6f8383e9863d439a3ef08c5cbfcfd66f55cb6546bb8e5a3"
JWT_PUBLIC_KEY
"%kernel.project_dir%/config/jwt/public.pem"
JWT_SECRET_KEY
"%kernel.project_dir%/config/jwt/private.pem"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTENT_LENGTH
"183"
CONTENT_TYPE
"application/json"
CONTEXT_DOCUMENT_ROOT
"/var/www/my-preprod/php82/mellis/command/srcs/public"
CONTEXT_PREFIX
""
D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
"mellis-command.mypreprod.xyz"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
PHP_SELF
"/index.php"
QUERY_STRING
""
REDIRECT_HTTPS
"on"
REDIRECT_HTTP_AUTHORIZATION
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3NzIyNDU0MTcsImV4cCI6MTc3MjI4MTQxNywicm9sZXMiOlsiUk9MRV9BRE1JTiIsIlJPTEVfVVNFUiJdLCJ1c2VybmFtZSI6IjQxNWE3ODc1ZmEwODQxODQ2cUBtZWxpcy5jb20ifQ.UEQR-4iVtfGqbBG0AhFUQmgjdwMWgcj_iQZOQA9cRP-Dxc4CVXkmITBfi4JAvdLe9c8iv5YZaZ9-1XO0i5vKUfqDGoe1xz4ZyX7pL9whwZb54BgkaQF9AjN2QpkUXf6VqHCJkngXjZR3PNk-dGViUxCQkK6Pu7lulcf8n4nUdclGVgMFPs7Wg1CsxFVE8Ua0qjoGVbECZ-o0j1AqXdIO5tJ0lz1a8w4Sw-h8FAkm-NJjsuWat1azczgU5FxiEdj2Ijs-PiCm8eQFwEnG0RbgsHalGMqp4H2mbyHuT5iVd0Xum1NbKkAg8TRTCQ3H5kxGkzTF1Z7sI-83S9qFY2FCKcMQf74Ekn1BGtaGszcXUqzeIoF1F0oc0R6K5M0VDyDpcA-25NkseP-QtKDGZ9NpLu-V0ubsMD--dUifRxOOs1oHGTSZjFoqBTL4-i_FJtaaIMWU0zeYgn1PLTR0rEnqm6npdxUeguClBTBzH4pFBP7VzloptKTnGH067ghQe0KFxCyBm7F1F9vRNFiPMPQV7YM0Ewu1kly4AaGtiezbHubfmF77PgMjdxbxC6w8hykKJvEbuoUBKFqT912b1VymH2MIOK0UJatLfTRY837sSSREE9TtEzr-maOVCgKsBpLhqcPhfLG9P6u9UtR3LbUhw44lXk8BCcGuplcnYpx5C90"
REDIRECT_SSL_TLS_SNI
"mellis-command.mypreprod.xyz"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/api/users"
REMOTE_ADDR
"102.16.85.118"
REMOTE_PORT
"53144"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1772245424
REQUEST_TIME_FLOAT
1772245424.3806
REQUEST_URI
"/api/users"
SCRIPT_FILENAME
"//var/www/my-preprod/php82/mellis/command/srcs/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"75.119.133.110"
SERVER_ADMIN
"master@mellis-command.mypreprod.xyz"
SERVER_NAME
"mellis-command.mypreprod.xyz"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
"<address>Apache/2.4.41 (Ubuntu) Server at mellis-command.mypreprod.xyz Port 443</address>\n"
SERVER_SOFTWARE
"Apache/2.4.41 (Ubuntu)"
SSL_TLS_SNI
"mellis-command.mypreprod.xyz"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,DATABASE_URL,MESSENGER_TRANSPORT_DSN,CORS_ALLOW_ORIGIN,JWT_SECRET_KEY,JWT_PUBLIC_KEY,JWT_PASSPHRASE,APP_NAME,APP_CONTACT_EMAIL,APP_CONTACT_PHONE,APP_ADDRESS_STREET,APP_ADDRESS_CITY,APP_ADDRESS_ZIP,APP_ADDRESS_COUNTRY,APP_BANK_NAME,APP_BANK_IBAN,APP_BANK_SWIFT_CODE,APP_VAT,APP_ORDER_NUM_PREFIX,APP_ORDER_NUM_SUFIX,HUB_BASE_URL,HUB_KEY_CLIENT,HUB_KEY_SECRET,GOOGLE_MAP_KEY"
USER
"www-data"
proxy-nokeepalive
"1"