Error 401 Unauthorized

GET https://e-batiment.fji.ch/api/municipalities?itemsPerPage=25&order%5Bname%5D=asc&page=1

Request / Response

Request

GET Parameters

Key Value
itemsPerPage
"25"
order
[
  "name" => "asc"
]
page
"1"

POST Parameters

No POST parameters

Uploaded Files

No uploaded files

Request Attributes

Key Value
_api_operation_name
"_api_/municipalities{._format}_get_collection"
_api_resource_class
"App\Entity\Municipality"
_controller
"api_platform.symfony.main_controller"
_firewall_context
"security.firewall.map.context.api"
_format
null
_route
"_api_/municipalities{._format}_get_collection"
_route_params
[
  "_stateless" => true
  "_api_resource_class" => "App\Entity\Municipality"
  "_api_operation_name" => "_api_/municipalities{._format}_get_collection"
  "_format" => null
]
_security_authenticators
[]
_security_skipped_authenticators
[
  Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#625
    -supports: false
    -unsupportedReasons: []
    -passport: null
    -duration: null
    -stub: "Gesdinet\JWTRefreshTokenBundle\Security\Http\Authenticator\RefreshTokenAuthenticator"
    -authenticated: null
    -exception: null
    -authenticator: Gesdinet\JWTRefreshTokenBundle\Security\Http\Authenticator\RefreshTokenAuthenticator {#637 …}
  }
  Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#647
    -supports: false
    -unsupportedReasons: []
    -passport: null
    -duration: null
    -stub: "Lexik\Bundle\JWTAuthenticationBundle\Security\Authenticator\JWTAuthenticator"
    -authenticated: null
    -exception: null
    -authenticator: Lexik\Bundle\JWTAuthenticationBundle\Security\Authenticator\JWTAuthenticator {#378 …}
  }
]
_stateless
true
_stopwatch_token
"e90930"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br, zstd, deflate"
host
"e-batiment.fji.ch"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
x-forwarded-proto
"https"
x-php-ob-level
"1"

Request Content

Request content not available (it was retrieved as a resource).

Retry Command

curl \
  --compressed \
  --url 'https://e-batiment.fji.ch/api/municipalities?itemsPerPage=25&order%5Bname%5D=asc&page=1' \
  --header 'X-Forwarded-Proto: https' \
  --header 'Accept-Encoding: gzip, br, zstd, deflate' \
  --header 'User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' \
  --header 'Accept: */*' \
  --header 'X-Php-Ob-Level: 1'

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"application/json"
date
"Sun, 06 Dec 2026 18:32:25 GMT"
www-authenticate
"Bearer"
x-debug-token
"facab1"
x-robots-tag
"noindex"

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_ENCRYPTION_KEY
"lrnjuBALhBIT35xlTJ042gMwM7/CUIgqzSikePsneCI="
APP_ENV
"dev"
APP_PUBLIC_URL
"https://e-batiment.fji.ch"
APP_SECRET
"b60c37ca9fb0f16f9e03504b43dfdff8"
APP_SHARE_DIR
"var/share"
DATABASE_URL
"mysql://sc6s0_ebatiment:i2U%40V%24e%23Fz6.7@sc6s0.myd.infomaniak.com:3306/sc6s0_ebatiment?serverVersion=10.11.19-MariaDB&charset=utf8mb4"
DEFAULT_URI
"http://localhost"
DEFAULT_URL
"e-batiment.fji.ch"
JWT_PASSPHRASE
"163fbbb1424923a1ee8825c0be1a36f9c0ce31aea7503b4ccc067642eb4ee649"
JWT_PUBLIC_KEY
"%kernel.project_dir%/config/jwt/public.pem"
JWT_SECRET_KEY
"%kernel.project_dir%/config/jwt/private.pem"
JWT_TOKEN_TTL
"900"
LOCK_DSN
"flock"
MAILER_DSN
"smtp://no-reply@fajinfo.ch:6f%24ydIk%24PIE%2A%21P33@mail.infomaniak.com:587"
MAILER_FROM
"E-Bâtiment <no-reply@fajinfo.ch>"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"
PHOTO_RETENTION_DAYS
"730"
REFRESH_TOKEN_TTL
"604800"
STORAGE_DIR
"%kernel.project_dir%/var/storage"
TRUSTED_DEVICE_TTL
"2592000"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
APP_PROJECT_DIR
"/home/clients/7013e9c520340d452787db41b1ef6905/sites/e-batiment.fji.ch"
APP_RUNTIME
"Symfony\Component\Runtime\SymfonyRuntime"
APP_RUNTIME_OPTIONS
[
  "project_dir" => "/home/clients/7013e9c520340d452787db41b1ef6905/sites/e-batiment.fji.ch"
]
CONTEXT_DOCUMENT_ROOT
"/home/clients/7013e9c520340d452787db41b1ef6905/sites/e-batiment.fji.ch/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/home/clients/7013e9c520340d452787db41b1ef6905/sites/e-batiment.fji.ch/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/home/clients/7013e9c520340d452787db41b1ef6905"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_HOST
"e-batiment.fji.ch"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_X_FORWARDED_PROTO
"https"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHP_SELF
"/index.php"
PHP_VERSION
"8.5"
QUERY_STRING
"itemsPerPage=25&order%5Bname%5D=asc&page=1"
REDIRECT_HTTPS
"on"
REDIRECT_PHP_VERSION
"8.5"
REDIRECT_QUERY_STRING
"itemsPerPage=25&order%5Bname%5D=asc&page=1"
REDIRECT_SCRIPT_URI
"https://e-batiment.fji.ch/api/municipalities"
REDIRECT_SCRIPT_URL
"/api/municipalities"
REDIRECT_SSL_TLS_SNI
"e-batiment.fji.ch"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"axWqOZPM7uwZp3ML5iRg_gAAAK0"
REDIRECT_URL
"/api/municipalities"
REMOTE_ADDR
"216.73.217.71"
REMOTE_PORT
"54296"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1796581945
REQUEST_TIME_FLOAT
1796581945.3324
REQUEST_URI
"/api/municipalities?itemsPerPage=25&order%5Bname%5D=asc&page=1"
SCRIPT_FILENAME
"/home/clients/7013e9c520340d452787db41b1ef6905/sites/e-batiment.fji.ch/public/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"https://e-batiment.fji.ch/api/municipalities"
SCRIPT_URL
"/api/municipalities"
SERVER_ADDR
"127.0.0.80"
SERVER_ADMIN
"webmaster@fji.ch"
SERVER_NAME
"e-batiment.fji.ch"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SSL_TLS_SNI
"e-batiment.fji.ch"
SYMFONY_DOTENV_PATH
"/home/clients/7013e9c520340d452787db41b1ef6905/sites/e-batiment.fji.ch/.env"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,APP_SHARE_DIR,DEFAULT_URI,DATABASE_URL,MESSENGER_TRANSPORT_DSN,MAILER_DSN,LOCK_DSN,JWT_SECRET_KEY,JWT_PUBLIC_KEY,JWT_PASSPHRASE,MAILER_FROM,JWT_TOKEN_TTL,REFRESH_TOKEN_TTL,TRUSTED_DEVICE_TTL,PHOTO_RETENTION_DAYS,STORAGE_DIR,APP_ENCRYPTION_KEY,APP_PUBLIC_URL,DEFAULT_URL"
TEMP
"/home/clients/7013e9c520340d452787db41b1ef6905/tmp"
TMP
"/home/clients/7013e9c520340d452787db41b1ef6905/tmp"
TMPDIR
"/home/clients/7013e9c520340d452787db41b1ef6905/tmp"
UNIQUE_ID
"axWqOZPM7uwZp3ML5iRg_gAAAK0"
USER
"uid115213"