POST http://vps-32bc7fac.vps.ovh.ca/api/check-essay

PlaceholderAction

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_api_header_parameters
[
  "connection" => [
    "upgrade"
  ]
  "host" => [
    "vps-32bc7fac.vps.ovh.ca"
  ]
  "content-length" => [
    "28"
  ]
  "sec-ch-ua-platform" => [
    ""macOS""
  ]
  "authorization" => [
    "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3MzEwODk4NjgsImV4cCI6MTczODg2NTg2OCwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoib21hcnNhYjNAZ21haWwuY29tIn0.JeSVn7l5aAbBIn8BwrAkS7K_UxCeZdHzAsTiKIIrb_0yNvo-uLB1L7yrfJ2LfkvOAOA3Xvdcb3zl-9Eo6I7VLcU5kptAWvaPpHt0is2kCclGYyQg-cG0sawk2M_3MwFfojTTleP9DELL0Z5BSLF1zinOGrx_tDlqlb0sYdy32BJkGOcEMrEKD6745WQixas5sXcKSZGjmaA0xYCQAzEMdwV411XiduUIj507BqYzWd_KCbW8MBWt9ed255nVTla2n1nZZCJU9zwrltFjAxv9ULCDQK8Fw1ieCif6uOW1PXJ316HU0gH9e8yQOcFRPELxraBmIE4hzSXd3lU6GZWybg"
  ]
  "user-agent" => [
    "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
  ]
  "sec-ch-ua" => [
    ""Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99""
  ]
  "content-type" => [
    "application/json"
  ]
  "sec-ch-ua-mobile" => [
    "?0"
  ]
  "accept" => [
    "*/*"
  ]
  "origin" => [
    "https://remedia-alpha.vercel.app"
  ]
  "sec-fetch-site" => [
    "cross-site"
  ]
  "sec-fetch-mode" => [
    "cors"
  ]
  "sec-fetch-dest" => [
    "empty"
  ]
  "referer" => [
    "https://remedia-alpha.vercel.app/"
  ]
  "accept-encoding" => [
    "gzip, deflate, br, zstd"
  ]
  "accept-language" => [
    "en,en-US;q=0.9,fr-FR;q=0.8,fr;q=0.7"
  ]
  "x-php-ob-level" => [
    "1"
  ]
]
_api_operation
ApiPlatform\Metadata\Post {#980
  #parameters: null
  #shortName: "StudentCourseWork"
  #class: "App\Entity\StudentCourseWork"
  #description: null
  #urlGenerationStrategy: null
  #deprecationReason: null
  #normalizationContext: [
    "groups" => [
      "studentcoursework:read"
    ]
    "enable_max_depth" => true
  ]
  #denormalizationContext: [
    "groups" => [
      "studentcoursework:write"
    ]
    "enable_max_depth" => true
  ]
  #collectDenormalizationErrors: null
  #validationContext: null
  #filters: [
    "annotated_app_entity_student_course_work_api_platform_doctrine_orm_filter_search_filter"
  ]
  #elasticsearch: null
  #mercure: null
  #messenger: null
  #input: [
    "class" => "App\Dto\CheckEssay"
    "name" => "CheckEssay"
  ]
  #output: null
  #order: null
  #fetchPartial: null
  #forceEager: null
  #paginationEnabled: null
  #paginationType: null
  #paginationItemsPerPage: null
  #paginationMaximumItemsPerPage: null
  #paginationPartial: null
  #paginationClientEnabled: true
  #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: "App\State\Processor\StudentCourseWork\StudentCourseWordCheckProvider"
  #stateOptions: ApiPlatform\Doctrine\Orm\State\Options {#854 …}
  #queryParameterValidationEnabled: null
  #extraProperties: [
    "user_defined_uri_template" => true
  ]
  #paginationViaCursor: null
  #read: false
  #deserialize: null
  #validate: null
  #write: null
  #serialize: null
  #priority: 0
  #name: "_api_/check-essay_post"
  #method: "POST"
  #uriTemplate: "/check-essay"
  #types: null
  #formats: null
  #inputFormats: [
    "jsonld" => [
      "application/ld+json"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "jsonapi" => [
      "application/vnd.api+json"
    ]
    "json" => [
      "application/json"
    ]
    "xml" => [
      "application/xml"
      "text/xml"
    ]
    "yaml" => [
      "application/x-yaml"
    ]
    "csv" => [
      "text/csv"
    ]
    "html" => [
      "text/html"
    ]
    "multipart" => [
      "multipart/form-data"
    ]
  ]
  #outputFormats: [
    "jsonld" => [
      "application/ld+json"
    ]
    "jsonhal" => [
      "application/hal+json"
    ]
    "jsonapi" => [
      "application/vnd.api+json"
    ]
    "json" => [
      "application/json"
    ]
    "xml" => [
      "application/xml"
      "text/xml"
    ]
    "yaml" => [
      "application/x-yaml"
    ]
    "csv" => [
      "text/csv"
    ]
    "html" => [
      "text/html"
    ]
    "multipart" => [
      "multipart/form-data"
    ]
  ]
  #uriVariables: []
  #routePrefix: null
  #routeName: null
  #defaults: null
  #requirements: null
  #options: null
  #stateless: true
  #sunset: null
  #acceptPatch: "application/merge-patch+json, application/vnd.api+json"
  #status: null
  #host: null
  #schemes: null
  #condition: null
  #controller: null
  #headers: null
  #cacheHeaders: [
    "max_age" => 0
    "shared_max_age" => 3600
    "vary" => [
      "Content-Type"
      "Authorization"
      "Origin"
    ]
  ]
  #hydraContext: null
  #openapiContext: null
  #openapi: null
  #exceptionToStatus: null
  #links: null
  #errors: null
  -itemUriTemplate: null
}
_api_operation_name
"_api_/check-essay_post"
_api_platform_links
Symfony\Component\WebLink\GenericLinkProvider {#3140
  -links: [
    3139 => Symfony\Component\WebLink\Link {#3139
      -href: "http://vps-32bc7fac.vps.ovh.ca/api/docs.jsonld"
      -rel: [
        "http://www.w3.org/ns/hydra/core#apiDocumentation" => "http://www.w3.org/ns/hydra/core#apiDocumentation"
      ]
      -attributes: []
    }
  ]
}
_api_query_parameters
[]
_api_resource_class
"App\Entity\StudentCourseWork"
_api_uri_variables
[]
_controller
"api_platform.action.placeholder"
_firewall_context
"security.firewall.map.context.main"
_format
null
_nelmio_cors_should_allow_origin
true
_resources
[
  "/api/get-student-course-work" => "/api/get-student-course-work"
  "/api/get-course-work" => "/api/get-course-work"
  "/api/rubrics/3" => "/api/rubrics/3"
  "/api/criterias/17" => "/api/criterias/17"
  "/api/criterias/18" => "/api/criterias/18"
  "/api/criterias/19" => "/api/criterias/19"
  "/api/criterias/20" => "/api/criterias/20"
  "/api/teachers/7" => "/api/teachers/7"
  "/api/classrooms/2" => "/api/classrooms/2"
  "/api/rubrics/5" => "/api/rubrics/5"
  "/api/criterias/23" => "/api/criterias/23"
  "/api/criterias/24" => "/api/criterias/24"
  "/api/students/9" => "/api/students/9"
]
_route
"_api_/check-essay_post"
_route_params
[
  "_format" => null
  "_stateless" => true
  "_api_resource_class" => "App\Entity\StudentCourseWork"
  "_api_operation_name" => "_api_/check-essay_post"
]
_stateless
true
_stopwatch_token
"bf12bb"
data
App\Dto\CheckEssay {#1368
  -student: "9"
  -course: "5"
}
input_format
"json"
original_data
App\Entity\StudentCourseWork {#1786
  -id: 2
  -created_at: DateTimeImmutable @1731271107 {#1793
    date: 2024-11-10 20:38:27.488031 UTC (+00:00)
  }
  -studentSubmission: null
  -coursework: App\Entity\Coursework {#1649 …}
  -student: App\Entity\Student {#1312 …}
  -teacher: Proxies\__CG__\App\Entity\Teacher {#1733 …}
  +image: null
  -recommandations: Doctrine\ORM\PersistentCollection {#1787 …}
  -startHelp: null
  -progressHelp: null
  -submitHelp: null
}

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, deflate, br, zstd"
accept-language
"en,en-US;q=0.9,fr-FR;q=0.8,fr;q=0.7"
authorization
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3MzEwODk4NjgsImV4cCI6MTczODg2NTg2OCwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoib21hcnNhYjNAZ21haWwuY29tIn0.JeSVn7l5aAbBIn8BwrAkS7K_UxCeZdHzAsTiKIIrb_0yNvo-uLB1L7yrfJ2LfkvOAOA3Xvdcb3zl-9Eo6I7VLcU5kptAWvaPpHt0is2kCclGYyQg-cG0sawk2M_3MwFfojTTleP9DELL0Z5BSLF1zinOGrx_tDlqlb0sYdy32BJkGOcEMrEKD6745WQixas5sXcKSZGjmaA0xYCQAzEMdwV411XiduUIj507BqYzWd_KCbW8MBWt9ed255nVTla2n1nZZCJU9zwrltFjAxv9ULCDQK8Fw1ieCif6uOW1PXJ316HU0gH9e8yQOcFRPELxraBmIE4hzSXd3lU6GZWybg"
connection
"upgrade"
content-length
"28"
content-type
"application/json"
host
"vps-32bc7fac.vps.ovh.ca"
origin
"https://remedia-alpha.vercel.app"
referer
"https://remedia-alpha.vercel.app/"
sec-ch-ua
""Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99""
sec-ch-ua-mobile
"?0"
sec-ch-ua-platform
""macOS""
sec-fetch-dest
"empty"
sec-fetch-mode
"cors"
sec-fetch-site
"cross-site"
user-agent
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
x-php-ob-level
"1"

Request Content

Pretty

{
    "student": "9",
    "course": "5"
}

Raw

{"student":"9","course":"5"}

Response

Response Headers

Header Value
accept-patch
"application/merge-patch+json, application/vnd.api+json"
access-control-allow-origin
"https://remedia-alpha.vercel.app"
access-control-expose-headers
"link"
cache-control
"no-cache, private"
content-location
"/api/get-student-course-work"
content-type
"application/ld+json; charset=utf-8"
date
"Sun, 10 Nov 2024 20:38:27 GMT"
link
"<http://vps-32bc7fac.vps.ovh.ca/api/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation""
location
"/api/get-student-course-work"
vary
"Accept"
x-content-type-options
"nosniff"
x-debug-token
"062d62"
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
APP_ENV
"dev"
APP_SECRET
"a3abe0e0a06ede88e8efe74d9e23a71f"
CORS_ALLOW_ORIGIN
"https://remedia-alpha.vercel.app"
DATABASE_URL
"mysql://remedia:api@127.0.0.1:3306/api?serverVersion=8.0.37&charset=utf8mb4"
FRONT_URL
"https://remedia-alpha.vercel.app/"
GOOGLE_CLIENT_ID
"764269088007-msiddi644iddgjvgmcn8sdu49id08l8f.apps.googleusercontent.com"
GOOGLE_CLIENT_SECRET
"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"
GOOGLE_REDIRECT_URI
"https://vps-32bc7fac.vps.ovh.ca/google/callback"
JWT_PASSPHRASE
"al3avc6lmaoi7gbvqrajerl1"
JWT_PUBLIC_KEY
"%kernel.project_dir%/config/jwt/public.pem"
JWT_SECRET_KEY
"%kernel.project_dir%/config/jwt/private.pem"
MAILER_DSN
"brevo+smtp://79d52b001@smtp-brevo.com:xsmtpsib-76e5592e6c6c7e78f84f6d78fdb7df3e97a82ee610240c537db895933faf0ba1-AwgLIPY3xzVGNS1J@smtp-relay.brevo.com:587"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"
OPENAI_API_KEY
"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"
OPENAI_API_MODEL
"gpt-4o"
ORIGIN
"https://vps-32bc7fac.vps.ovh.ca"
SENTRY_DSN
"https://764d9224687dd03d70e4d83b9331b904@o4507603376799744.ingest.us.sentry.io/4507782259146752"
WKHTMLTOIMAGE_PATH
"/usr/local/bin/wkhtmltoimage"
WKHTMLTOPDF_PATH
"/usr/local/bin/wkhtmltopdf"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTENT_LENGTH
"28"
CONTENT_TYPE
"application/json"
DOCUMENT_ROOT
"/home/ubuntu/remedia-back/public"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, deflate, br, zstd"
HTTP_ACCEPT_LANGUAGE
"en,en-US;q=0.9,fr-FR;q=0.8,fr;q=0.7"
HTTP_AUTHORIZATION
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3MzEwODk4NjgsImV4cCI6MTczODg2NTg2OCwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoib21hcnNhYjNAZ21haWwuY29tIn0.JeSVn7l5aAbBIn8BwrAkS7K_UxCeZdHzAsTiKIIrb_0yNvo-uLB1L7yrfJ2LfkvOAOA3Xvdcb3zl-9Eo6I7VLcU5kptAWvaPpHt0is2kCclGYyQg-cG0sawk2M_3MwFfojTTleP9DELL0Z5BSLF1zinOGrx_tDlqlb0sYdy32BJkGOcEMrEKD6745WQixas5sXcKSZGjmaA0xYCQAzEMdwV411XiduUIj507BqYzWd_KCbW8MBWt9ed255nVTla2n1nZZCJU9zwrltFjAxv9ULCDQK8Fw1ieCif6uOW1PXJ316HU0gH9e8yQOcFRPELxraBmIE4hzSXd3lU6GZWybg"
HTTP_CONNECTION
"upgrade"
HTTP_CONTENT_LENGTH
"28"
HTTP_CONTENT_TYPE
"application/json"
HTTP_HOST
"vps-32bc7fac.vps.ovh.ca"
HTTP_ORIGIN
"https://remedia-alpha.vercel.app"
HTTP_REFERER
"https://remedia-alpha.vercel.app/"
HTTP_SEC_CH_UA
""Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99""
HTTP_SEC_CH_UA_MOBILE
"?0"
HTTP_SEC_CH_UA_PLATFORM
""macOS""
HTTP_SEC_FETCH_DEST
"empty"
HTTP_SEC_FETCH_MODE
"cors"
HTTP_SEC_FETCH_SITE
"cross-site"
HTTP_USER_AGENT
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
PATH_INFO
"/api/check-essay"
PHP_SELF
"/index.php/api/check-essay"
REMOTE_ADDR
"127.0.0.1"
REMOTE_PORT
"54262"
REQUEST_METHOD
"POST"
REQUEST_TIME
1731271107
REQUEST_TIME_FLOAT
1731271107.3822
REQUEST_URI
"/api/check-essay"
SCRIPT_FILENAME
"/home/ubuntu/remedia-back/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_NAME
"localhost"
SERVER_PORT
"8000"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"PHP 8.1.2-1ubuntu2.18 Development Server"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,DATABASE_URL,JWT_PASSPHRASE,CORS_ALLOW_ORIGIN,OPENAI_API_KEY,OPENAI_API_MODEL,FRONT_URL,MAILER_DSN,ORIGIN,SENTRY_DSN,MESSENGER_TRANSPORT_DSN,WKHTMLTOPDF_PATH,WKHTMLTOIMAGE_PATH,GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET,GOOGLE_REDIRECT_URI,JWT_SECRET_KEY,JWT_PUBLIC_KEY"