POST http://api.peyrolles.tekshelf.fr/api/esp/boards/TEST/weights?apiKey=1f0d1d61-2e11-6bba-a7c4-bb38d7fa354a

PostUpdateWeights

Request

GET Parameters

Key Value
apiKey
"1f0d1d61-2e11-6bba-a7c4-bb38d7fa354a"

POST Parameters

No POST parameters

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_api_header_parameters
[
  "content-length" => [
    "33"
  ]
  "host" => [
    "api.peyrolles.tekshelf.fr"
  ]
  "content-type" => [
    "application/json"
  ]
  "x-real-ip" => [
    "82.216.148.14"
  ]
  "x-forwarded-for" => [
    "82.216.148.14"
  ]
  "x-forwarded-host" => [
    "api.peyrolles.tekshelf.fr"
  ]
  "x-forwarded-proto" => [
    "https"
  ]
  "x-original-uri" => [
    "/api/esp/boards/TEST/weights?apiKey=1f0d1d61-2e11-6bba-a7c4-bb38d7fa354a"
  ]
  "x-forwarded-ssl" => [
    "on"
  ]
  "x-forwarded-port" => [
    "443"
  ]
  "user-agent" => [
    "ESP32 HTTP Client"
  ]
  "x-php-ob-level" => [
    "0"
  ]
]
_api_operation
ApiPlatform\Metadata\Post {#1302
  #parameters: ApiPlatform\Metadata\Parameters {#879 …}
  #shortName: "Board"
  #class: "App\Entity\Board"
  #description: null
  #urlGenerationStrategy: null
  #deprecationReason: null
  #normalizationContext: [
    "groups" => [
      "boards:update:acknowledgment"
    ]
  ]
  #denormalizationContext: [
    "groups" => [
      "board:weights"
    ]
  ]
  #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: true
  #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: ApiPlatform\Doctrine\Orm\State\Options {#878 …}
  #queryParameterValidationEnabled: null
  #extraProperties: [
    "pagination_items_per_page_parameter_name" => "itemPerPage"
    "user_defined_uri_template" => true
  ]
  #paginationViaCursor: null
  #read: false
  #deserialize: null
  #validate: null
  #write: false
  #serialize: null
  #priority: 4
  #name: "_api_/esp/boards/{serialNumber}/weights_post"
  #method: "POST"
  #uriTemplate: "/esp/boards/{serialNumber}/weights"
  #types: null
  #formats: null
  #inputFormats: [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
    ]
  ]
  #outputFormats: [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
    ]
  ]
  #uriVariables: [
    "serialNumber" => ApiPlatform\Metadata\Link {#877
      #key: null
      #schema: null
      #openApi: null
      #provider: null
      #filter: null
      #property: null
      #description: null
      #required: null
      #priority: null
      #constraints: null
      #extraProperties: []
      -parameterName: "serialNumber"
      -fromProperty: null
      -toProperty: null
      -fromClass: "App\Entity\Board"
      -toClass: null
      -identifiers: [
        "serialNumber"
      ]
      -compositeIdentifier: null
      -expandedValue: null
      -security: null
      -securityMessage: null
      -securityObjectName: null
    }
  ]
  #routePrefix: null
  #routeName: null
  #defaults: null
  #requirements: null
  #options: null
  #stateless: null
  #sunset: null
  #acceptPatch: "application/merge-patch+json"
  #status: null
  #host: null
  #schemes: null
  #condition: null
  #controller: "App\Controller\Board\PostUpdateWeights"
  #headers: null
  #cacheHeaders: null
  #hydraContext: null
  #openapiContext: null
  #openapi: null
  #exceptionToStatus: null
  #links: null
  -itemUriTemplate: null
}
_api_operation_name
"_api_/esp/boards/{serialNumber}/weights_post"
_api_platform_links
Symfony\Component\WebLink\GenericLinkProvider {#1933
  -links: [
    2030 => Symfony\Component\WebLink\Link {#2030
      -href: "http://api.peyrolles.tekshelf.fr/api/docs.jsonld"
      -rel: [
        "http://www.w3.org/ns/hydra/core#apiDocumentation" => "http://www.w3.org/ns/hydra/core#apiDocumentation"
      ]
      -attributes: []
    }
  ]
}
_api_query_parameters
[
  "apiKey" => "1f0d1d61-2e11-6bba-a7c4-bb38d7fa354a"
]
_api_resource_class
"App\Entity\Board"
_api_uri_variables
[
  "serialNumber" => "TEST"
]
_controller
"App\Controller\Board\PostUpdateWeights"
_firewall_context
"security.firewall.map.context.main"
_format
null
_resources
[
  "/api/boards/TEST" => "/api/boards/TEST"
]
_route
"_api_/esp/boards/{serialNumber}/weights_post"
_route_params
[
  "_format" => null
  "_stateless" => null
  "_api_resource_class" => "App\Entity\Board"
  "_api_operation_name" => "_api_/esp/boards/{serialNumber}/weights_post"
  "serialNumber" => "TEST"
]
_stateless
null
_stopwatch_token
"80afae"
data
App\Entity\Board {#1349
  -id: null
  -ip: null
  -serialNumber: null
  -scales: Doctrine\Common\Collections\ArrayCollection {#1348 …}
  -version: null
  -mode: null
  -lastConnectedAt: null
  -scalesCount: ? int
}
input_format
"json"
original_data
App\Entity\Board {#1129
  -id: Symfony\Component\Uid\UuidV6 {#1117 …}
  -ip: "192.168.0.74"
  -serialNumber: "TEST"
  -scales: Doctrine\ORM\PersistentCollection {#1173 …}
  -version: null
  -mode: "default"
  -lastConnectedAt: DateTimeImmutable @1764994112 {#978
    date: 2025-12-06 04:08:32.805652 UTC (+00:00)
  }
  -scalesCount: ? int
}
serialNumber
"TEST"

Request Headers

Header Value
content-length
"33"
content-type
"application/json"
host
"api.peyrolles.tekshelf.fr"
user-agent
"ESP32 HTTP Client"
x-forwarded-for
"82.216.148.14"
x-forwarded-host
"api.peyrolles.tekshelf.fr"
x-forwarded-port
"443"
x-forwarded-proto
"https"
x-forwarded-ssl
"on"
x-original-uri
"/api/esp/boards/TEST/weights?apiKey=1f0d1d61-2e11-6bba-a7c4-bb38d7fa354a"
x-php-ob-level
"0"
x-real-ip
"82.216.148.14"

Request Content

Pretty

[
    {
        "port_index": 67,
        "weight": 1035
    }
]

Raw

[{"port_index":67,"weight":1035}]

Response

Response Headers

Header Value
accept-patch
"application/merge-patch+json"
cache-control
"no-cache, private"
content-location
"/api/boards/TEST"
content-type
"application/ld+json; charset=utf-8"
date
"Sat, 06 Dec 2025 04:08:32 GMT"
link
"<http://api.peyrolles.tekshelf.fr/api/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation""
location
"/api/boards/TEST"
vary
"Accept"
x-content-type-options
"nosniff"
x-debug-token
"7c6210"
x-frame-options
"deny"

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
(no data)

Defined as regular env variables

Key Value
API_PREFIX
"/api"
API_SSL_PROTOCOL
"https://"
APP_DEBUG
"1"
APP_ENV
"dev"
APP_SECRET
"9834ca606950cc7cbf595353d58695cd"
AUTH_TYPE
""
BASE_PATH
"api.peyrolles.tekshelf.fr"
CACHE_URL
"redis://tekshelf_cache:6379"
CONTENT_LENGTH
"33"
CONTENT_TYPE
"application/json"
CORS_ALLOW_ORIGIN
"*"
DATABASE_URL
"mysql://root:@tekshelf_peyrolles_db:3306/tekshelf"
DOCUMENT_ROOT
"/app/public"
DOCUMENT_URI
"/index.php"
GATEWAY_INTERFACE
"CGI/1.1"
GODEBUG
"cgocheck=0"
GPG_KEYS
"AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD"
HOME
"/root"
HOSTNAME
"0eac8f8ce90d"
HTTPS
""
HTTP_CONTENT_LENGTH
"33"
HTTP_CONTENT_TYPE
"application/json"
HTTP_HOST
"api.peyrolles.tekshelf.fr"
HTTP_USER_AGENT
"ESP32 HTTP Client"
HTTP_X_FORWARDED_FOR
"82.216.148.14"
HTTP_X_FORWARDED_HOST
"api.peyrolles.tekshelf.fr"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_SSL
"on"
HTTP_X_ORIGINAL_URI
"/api/esp/boards/TEST/weights?apiKey=1f0d1d61-2e11-6bba-a7c4-bb38d7fa354a"
HTTP_X_REAL_IP
"82.216.148.14"
JWT_DOMAIN
".peyrolles.tekshelf.fr"
JWT_PASSPHRASE
"20159a86ff2e331dca08688e07e23988e2df2c56ad1f879e3770947210dc301d"
JWT_PUBLIC_KEY
"%kernel.project_dir%/config/jwt/public.pem"
JWT_SECRET_KEY
"%kernel.project_dir%/config/jwt/private.pem"
LETSENCRYPT_HOST
"api.peyrolles.tekshelf.fr"
MAILER_DSN
"mailjet+api://acdca0ec4fb87367ca700831c6ec1579:08b1c62ebfa1cbc41eff73a0f9f25c4f@default"
MAILER_NO_REPLY_DESCRIPTION
"TEKSHELF"
MAILER_NO_REPLY_MAIL
"contact@tekshelf.fr"
MEDIPIM_ACTIVATED
"true"
MEDIPIM_ID
"246"
MEDIPIM_SECRET
"e18f8f90098a540c937c4fad1f2f745665de0ca4"
MEDIPIM_URL
"https://api.medipim.fr/v4"
MESSENGER_TRANSPORT_DSN
"doctrine://default"
OPEN_FOOD_FACTS_ACTIVATED
"false"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PATH_INFO
""
PHPIZE_DEPS
"autoconf \t\tdpkg-dev \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c"
PHP_ASC_URL
"https://www.php.net/distributions/php-8.4.14.tar.xz.asc"
PHP_CFLAGS
"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
PHP_CPPFLAGS
"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
PHP_INI_DIR
"/usr/local/etc/php"
PHP_LDFLAGS
"-Wl,-O1 -pie"
PHP_SELF
"/index.php"
PHP_SHA256
"bac90ee7cf738e814c89b6b27d4d2c4b70e50942a420837e1a22f5fd5f9867a3"
PHP_URL
"https://www.php.net/distributions/php-8.4.14.tar.xz"
PHP_VERSION
"8.4.14"
PWD
"/app"
QUERY_STRING
"apiKey=1f0d1d61-2e11-6bba-a7c4-bb38d7fa354a"
REMOTE_ADDR
"172.18.0.11"
REMOTE_HOST
"172.18.0.11"
REMOTE_IDENT
""
REMOTE_PORT
"36196"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"http"
REQUEST_TIME
1764994112
REQUEST_TIME_FLOAT
1764994112.5988
REQUEST_URI
"/api/esp/boards/TEST/weights?apiKey=1f0d1d61-2e11-6bba-a7c4-bb38d7fa354a"
SCRIPT_FILENAME
"/app/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_NAME
"api.peyrolles.tekshelf.fr"
SERVER_PORT
"80"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"FrankenPHP"
SSL_CIPHER
""
SSL_PROTOCOL
""
TELEGRAM_BOT_TOKEN
"7500609769:AAEo84eGbd5zkjjxBNiWLpmG-L65xm5Me04"
TELEGRAM_STOCK_CHANNEL_ID
"-1002300230648"
TELEGRAM_THEFT_CHANNEL_ID
"-1002300230648"
VIRTUAL_HOST
"api.peyrolles.tekshelf.fr"
VIRTUAL_PORT
"80"
VUE_APP_API_BASE_PATH
"https://api.peyrolles.tekshelf.fr/api"
VUE_APP_COOKIE_DOMAIN
".tekshelf.fr"
VUE_APP_SPA_URL
"https://peyrolles.tekshelf.fr"
WEBSOCKET_URL
"wss://ws.peyrolles.tekshelf.fr"
XDG_CONFIG_HOME
"/config"
XDG_DATA_HOME
"/data"
argc
1
argv
[
  "apiKey=1f0d1d61-2e11-6bba-a7c4-bb38d7fa354a"
]