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
"ea1227"
data
App\DTO\Api\User\UserDTO {#792
  +id: null
  +latitude: null
  +longitude: null
  +firstName: "-"
  +lastName: "Barre/T"
  +email: "DTL0009445@mellis.com"
  +username: null
  +address: "alatsinainy"
  +city: "ALM - S01"
  +zip: "-"
  +phone: "-"
  +photo: null
  +password: null
  +localArea: null
  +localAreaSageId: "3"
  +sageId: "21043_DTL0009445"
}

Request Headers

Header Value
accept
"*/*"
accept-encoding
"deflate, gzip, br"
authorization
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3NzIyNDUwOTksImV4cCI6MTc3MjI4MTA5OSwicm9sZXMiOlsiUk9MRV9BRE1JTiIsIlJPTEVfVVNFUiJdLCJ1c2VybmFtZSI6IjQxNWE3ODc1ZmEwODQxODQ2cUBtZWxpcy5jb20ifQ.JiqY8-nMlM8ZnUISHFseAfG6PBk7ECoZJTZnl3P0gzi0VXTd_PZFEMIi5s94tWD0XlKoTy1A6blZccZ8r2Wum7xaSV-vM8s91Bf9_SLPlnLsvFQQ4BMj6vc-UF-J2pYsfzznDQ7Dk-39oiaqY_y1moqt80a655osK3uCygaRFtF630M7Y2JxAotRZueyOKrPAKXK3LEGUSXJKKxFfrxzZZfJVt1p1bBjJA6Xj2IMTt2YFLQXI_P37Sv0ok_WG9QRX59Tkc2rnMO5pf0g0VrVQLIVTFHoQnQKfOzo9H5vfe7EP_YKKdBGO8A1QtaHrcTFjUOJCTbmvsUbuGWN4Wsf2nrmBpmJdk6U0X0S8sENUhmn2m0RUx7qEyh59MYWvrDMBJRyXdPabPJU22aGfMczqgnMcK1_FwPI6FAiWaIp3tNc1RlmumiAUXXY-vzMvR5bBwJ4Uuv91q4Wo197oBfCmO8AqQ4jUJtF7jq2-fY02m3JakI1VWV3ovhe7gFw308tw4Re4h_b1dxBpx6yd7VmtQieKCsu3TIc6KGr2HrD92_fLyeQnpKBD19m0ECn_TTA-H5M8BNShv2gbVdmgqKCthOiEDZ95yPgs5Vdd2DoPnPoTD-ayoFszk3pLz6xRF9pUGAXdEtv1U4Z2ote4N2p7kpAx3lSfhlhecOPuYYMSRg"
content-length
"186"
content-type
"application/json"
host
"mellis-command.mypreprod.xyz"
x-php-ob-level
"1"

Request Content

Pretty

{
    "firstName": "-",
    "lastName": "Barre\/T",
    "email": "DTL0009445@mellis.com",
    "phone": "-",
    "address": "alatsinainy",
    "city": "ALM - S01",
    "zip": "-",
    "localAreaSageId": "3",
    "sageId": "21043_DTL0009445"
}

Raw

{"firstName":"-","lastName":"Barre\/T","email":"DTL0009445@mellis.com","phone":"-","address":"alatsinainy","city":"ALM - S01","zip":"-","localAreaSageId":"3","sageId":"21043_DTL0009445"}

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"application/json"
date
"Sat, 28 Feb 2026 02:18:20 GMT"
x-debug-token
"6f5571"

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
"186"
CONTENT_TYPE
"application/json"
CONTEXT_DOCUMENT_ROOT
"/var/www/my-preprod/php82/mellis/command/srcs/public"
CONTEXT_PRE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is-command.mypreprod.xyz"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/api/users"
REMOTE_ADDR
"102.16.85.118"
REMOTE_PORT
"60326"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1772245100
REQUEST_TIME_FLOAT
1772245100.5254
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"