POST https://mesflashcards.fr/api/flashcards

MainController

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_api_header_parameters
[
  "remote-ip" => [
    "2a01:cb0c:50f:f600:e582:9759:f01f:a41c"
  ]
  "accept-encoding" => [
    "gzip, deflate, br, zstd"
  ]
  "priority" => [
    "u=3, i"
  ]
  "accept-language" => [
    "fr-FR,fr;q=0.9"
  ]
  "sec-fetch-dest" => [
    "empty"
  ]
  "referer" => [
    "https://mesflashcards.fr/"
  ]
  "user-agent" => [
    "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.3 Safari/605.1.15"
  ]
  "sec-fetch-mode" => [
    "cors"
  ]
  "sec-fetch-site" => [
    "same-origin"
  ]
  "origin" => [
    "https://mesflashcards.fr"
  ]
  "content-type" => [
    "application/ld+json"
  ]
  "accept" => [
    "application/ld+json"
  ]
  "content-length" => [
    "247"
  ]
  "x-ovhrequest-id" => [
    "a35eed1d26155642d0212f16e8f3b84b"
  ]
  "x-forwarded-proto" => [
    "https"
  ]
  "x-forwarded-for" => [
    "2a01:cb0c:50f:f600:e582:9759:f01f:a41c"
  ]
  "x-predictor" => [
    "1"
  ]
  "cookie" => [
    "main_deauth_profile_token=7201ee"
  ]
  "host" => [
    "mesflashcards.fr"
  ]
  "x-php-ob-level" => [
    "1"
  ]
]
_api_operation
ApiPlatform\Metadata\Post {#1253
  #parameters: null
  #shortName: "Flashcards"
  #class: "App\Entity\Flashcards"
  #description: null
  #urlGenerationStrategy: null
  #deprecationReason: null
  #normalizationContext: null
  #denormalizationContext: [
    "api_assign_object_to_populate" => true
  ]
  #collectDenormalizationErrors: null
  #validationContext: null
  #filters: []
  #mercure: null
  #messenger: null
  #input: null
  #output: null
  #order: null
  #fetchPartial: null
  #forceEager: null
  #paginationEnabled: false
  #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: ApiPlatform\Doctrine\Orm\State\Options {#1301 …}
  #rules: null
  #policy: null
  #middleware: null
  #queryParameterValidationEnabled: null
  #strictQueryParameterValidation: null
  #hideHydraOperation: null
  #jsonStream: null
  #map: null
  #extraProperties: []
  #paginationViaCursor: null
  #read: false
  #deserialize: true
  #validate: true
  #write: null
  #serialize: null
  #priority: 2
  #name: "_api_/flashcards{._format}_post"
  #formats: null
  #inputFormats: [
    "jsonld" => [
      "application/ld+json"
    ]
    "jsonopenapi" => [
      "application/vnd.openapi+json"
    ]
  ]
  #outputFormats: [
    "jsonld" => [
      "application/ld+json"
    ]
    "jsonopenapi" => [
      "application/vnd.openapi+json"
    ]
  ]
  #method: "POST"
  #uriTemplate: "/flashcards{._format}"
  #types: null
  #uriVariables: []
  #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: "api_platform.symfony.main_controller"
  #headers: null
  #cacheHeaders: null
  #hydraContext: null
  #openapi: null
  #exceptionToStatus: null
  #links: null
  #errors: null
  -itemUriTemplate: null
}
_api_operation_name
"_api_/flashcards{._format}_post"
_api_platform_links
Symfony\Component\WebLink\GenericLinkProvider {#2637
  -links: [
    2874 => Symfony\Component\WebLink\Link {#2874
      -rel: [
        "http://www.w3.org/ns/hydra/core#apiDocumentation" => "http://www.w3.org/ns/hydra/core#apiDocumentation"
      ]
      -attributes: []
      -href: "https://mesflashcards.fr/api/docs.jsonld"
    }
  ]
}
_api_query_parameters
[]
_api_resource_class
"App\Entity\Flashcards"
_api_uri_variables
[]
_controller
"api_platform.symfony.main_controller"
_firewall_context
"security.firewall.map.context.main"
_format
null
_resources
[
  "/api/flashcards/635" => "/api/flashcards/635"
  "/api/categories/47" => "/api/categories/47"
]
_route
"_api_/flashcards{._format}_post"
_route_params
[
  "_stateless" => null
  "_api_resource_class" => "App\Entity\Flashcards"
  "_api_operation_name" => "_api_/flashcards{._format}_post"
  "_format" => null
]
_security_authenticators
[]
_security_firewall_run
"_security_main"
_security_skipped_authenticators
[
  Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#692
    -supports: false
    -passport: null
    -duration: null
    -stub: "App\Security\LoginControllerAuthenticator"
    -authenticated: null
    -exception: null
    -authenticator: App\Security\LoginControllerAuthenticator {#660 …}
  }
  Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#698
    -supports: false
    -passport: null
    -duration: null
    -stub: "Symfony\Component\Security\Http\Authenticator\RememberMeAuthenticator"
    -authenticated: null
    -exception: null
    -authenticator: Symfony\Component\Security\Http\Authenticator\RememberMeAuthenticator {#699 …}
  }
]
_stateless
null
_stopwatch_token
"7e3a90"
data
App\Entity\Flashcards {#2164
  -id: 635
  -question: "La loi du 4 mars 2002 relative au droit des malades et à la qualité du système de santé est associée à une personnalité politique. Laquelle ?"
  -reponse: "Bernard Kouchner"
  -date_maj: DateTimeImmutable @1773670469 {#2896
    date: 2026-03-16 15:14:29.0 Europe/Paris (+01:00)
  }
  -histo_etat: null
  -ordre: 6
  -date_creation: DateTimeImmutable @1773670469 {#2894
    date: 2026-03-16 15:14:29.0 Europe/Paris (+01:00)
  }
  -media_question: null
  -media_reponse: null
  -categorie: App\Entity\Categorie {#2431 …}
  -etat: null
}
input_format
"jsonld"

Request Headers

Header Value
accept
"application/ld+json"
accept-encoding
"gzip, deflate, br, zstd"
accept-language
"fr-FR,fr;q=0.9"
content-length
"247"
content-type
"application/ld+json"
cookie
"main_deauth_profile_token=7201ee"
host
"mesflashcards.fr"
origin
"https://mesflashcards.fr"
priority
"u=3, i"
referer
"https://mesflashcards.fr/"
remote-ip
"2a01:cb0c:50f:f600:e582:9759:f01f:a41c"
sec-fetch-dest
"empty"
sec-fetch-mode
"cors"
sec-fetch-site
"same-origin"
user-agent
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.3 Safari/605.1.15"
x-forwarded-for
"2a01:cb0c:50f:f600:e582:9759:f01f:a41c"
x-forwarded-proto
"https"
x-ovhrequest-id
"a35eed1d26155642d0212f16e8f3b84b"
x-php-ob-level
"1"
x-predictor
"1"

Request Content

Pretty

{
    "question": "La loi du 4 mars 2002 relative au droit des malades et \u00e0 la qualit\u00e9 du syst\u00e8me de sant\u00e9 est associ\u00e9e \u00e0 une personnalit\u00e9 politique. Laquelle ?",
    "reponse": "Bernard Kouchner",
    "categorie": "\/api\/categories\/47",
    "ordre": 6,
    "etat_id": 2
}

Raw

{"question":"La loi du 4 mars 2002 relative au droit des malades et à la qualité du système de santé est associée à une personnalité politique. Laquelle ?","reponse":"Bernard Kouchner","categorie":"/api/categories/47","ordre":6,"etat_id":2}

Response

Response Headers

Header Value
accept-patch
"application/merge-patch+json"
cache-control
"no-cache, private"
content-location
"/api/flashcards/635.jsonld"
content-type
"application/ld+json; charset=utf-8"
date
"Mon, 16 Mar 2026 14:14:29 GMT"
link
"<https://mesflashcards.fr/api/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation""
location
"/api/flashcards/635"
vary
"Accept"
x-content-type-options
"nosniff"
x-debug-token
"c33de4"
x-frame-options
"deny"

Cookies

Request Cookies

Key Value
main_deauth_profile_token
"7201ee"

Response Cookies

No response cookies

Session 1

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

1 Usages
Stateless check enabled
Usage
Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage:39
[
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/security-core/Authentication/Token/Storage/UsageTrackingTokenStorage.php"
    "line" => 39
    "function" => "getMetadataBag"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/security-http/Authenticator/RememberMeAuthenticator.php"
    "line" => 79
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/security-http/Authenticator/Debug/TraceableAuthenticator.php"
    "line" => 67
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Authenticator\RememberMeAuthenticator"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/security-http/Authentication/AuthenticatorManager.php"
    "line" => 120
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/security-http/Firewall/AuthenticatorManagerListener.php"
    "line" => 32
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Authentication\AuthenticatorManager"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/security-http/Authenticator/Debug/TraceableAuthenticatorManagerListener.php"
    "line" => 35
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/security-bundle/Debug/WrappedLazyListener.php"
    "line" => 38
    "function" => "supports"
    "class" => "Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticatorManagerListener"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/security-http/Firewall/AbstractListener.php"
    "line" => 25
    "function" => "supports"
    "class" => "Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/security-bundle/Security/LazyFirewallContext.php"
    "line" => 61
    "function" => "__invoke"
    "class" => "Symfony\Component\Security\Http\Firewall\AbstractListener"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php"
    "line" => 91
    "function" => "__invoke"
    "class" => "Symfony\Bundle\SecurityBundle\Security\LazyFirewallContext"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/security-http/Firewall.php"
    "line" => 92
    "function" => "callListeners"
    "class" => "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
    "line" => 115
    "function" => "onKernelRequest"
    "class" => "Symfony\Component\Security\Http\Firewall"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 206
    "function" => "__invoke"
    "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 56
    "function" => "callListeners"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
    "line" => 126
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 159
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/http-kernel/Kernel.php"
    "line" => 182
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/vendor/autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/home/florenn/www/mesflashcards/public/index.php"
    "line" => 5
    "args" => [
      "/home/florenn/www/mesflashcards/vendor/autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_DEBUG
"1"
APP_ENV
"dev"
APP_SECRET
"6ca3f865b6d758f084f39b718b637fcd"
BREVO_API_KEY
"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"
BREVO_SENDER_EMAIL
"no-reply@mesflashcards.fr"
BREVO_SENDER_NAME
"Mes Flashcards"
CORS_ALLOW_ORIGIN
"^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$"
DATABASE_URL
"mysql://florenn816:291Florent59@florenn816.mysql.db/florenn816?serverVersion=8.0"
DEFAULT_URI
"http://localhost"
GITHUB_REPO_NAME
"MesFlashCards"
GITHUB_REPO_OWNER
"MesFlashcards"
GITHUB_TOKEN
"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"
MAILER_DSN
"null://null"
MAINTENANCE_MODE
"false"
MAINTENANCE_WHITELIST
"2a02:8428:457a:b601:51f7:1c96:fcb2:b102,2a01:cb0c:50f:f600:3c97:8927:13b8:a3c7"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"

Defined as regular env variables

Key Value
CFG_CLUSTER
"cluster129"
CONTENT_LENGTH
"247"
CONTENT_TYPE
"application/ld+json"
DOCUMENT_ROOT
"/home/florenn/www/mesflashcards/public"
ENVIRONMENT
"production"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
HTTP_ACCEPT
"application/ld+json"
HTTP_ACCEPT_ENCODING
"gzip, deflate, br, zstd"
HTTP_ACCEPT_LANGUAGE
"fr-FR,fr;q=0.9"
HTTP_COOKIE
"main_deauth_profile_token=7201ee"
HTTP_HOST
"mesflashcards.fr"
HTTP_ORIGIN
"https://mesflashcards.fr"
HTTP_PRIORITY
"u=3, i"
HTTP_REFERER
"https://mesflashcards.fr/"
HTTP_REMOTE_IP
"2a01:cb0c:50f:f600:e582:9759:f01f:a41c"
HTTP_SEC_FETCH_DEST
"empty"
HTTP_SEC_FETCH_MODE
"cors"
HTTP_SEC_FETCH_SITE
"same-origin"
HTTP_USER_AGENT
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.3 Safari/605.1.15"
HTTP_X_FORWARDED_FOR
"2a01:cb0c:50f:f600:e582:9759:f01f:a41c"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_OVHREQUEST_ID
"a35eed1d26155642d0212f16e8f3b84b"
HTTP_X_PREDICTOR
"1"
PHP_SELF
"/index.php"
QUERY_STRING
""
REDIRECT_STATUS
"200"
REDIRECT_URL
"/api/flashcards"
REMOTE_ADDR
"2a01:cb0c:50f:f600:e582:9759:f01f:a41c"
REMOTE_PORT
"37650"
REQUEST_METHOD
"POST"
REQUEST_TIME
1773670469
REQUEST_TIME_FLOAT
1773670469.8271
REQUEST_URI
"/api/flashcards"
SCRIPT_FILENAME
"/home/florenn/www/mesflashcards/public/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"https://mesflashcards.fr:443/api/flashcards"
SCRIPT_URL
"/api/flashcards"
SERVER_ADDR
"10.129.20.3"
SERVER_ADMIN
"postmaster@mesflashcards.fr"
SERVER_NAME
"mesflashcards.fr"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SYMFONY_DOTENV_PATH
"/home/florenn/www/mesflashcards/.env"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_DEBUG,APP_SECRET,DEFAULT_URI,DATABASE_URL,MESSENGER_TRANSPORT_DSN,MAILER_DSN,CORS_ALLOW_ORIGIN,BREVO_API_KEY,BREVO_SENDER_EMAIL,BREVO_SENDER_NAME,GITHUB_TOKEN,GITHUB_REPO_OWNER,GITHUB_REPO_NAME,MAINTENANCE_MODE,MAINTENANCE_WHITELIST"
UNIQUE_ID
"abgQRZN6ncaX5O5vnP8bfwAAAwU"
USER
"florenn"
argc
0
argv
[]