Nelmio API doc header

I want to define a parameter in the headers in the sandbox of the Nelmio API doc Bundle package.

How can this be defined in the Nelmio ApiDoc annotation?

 @ApiDoc(
       resource=true,
       description="Return the information",
       requirements={
           {
               "name"="ref",
               "dataType"="integer",
               "requirement"="\d{1,6}",
               "description"="Ref"
           }
       },
      )
+4
source share
1 answer

Try

requirements={
           {
               "HTTP_name"="ref",
               "HTTP_dataType"="integer",
               "HTTP_requirement"="\d{1,6}",
               "HTTP_description"="Ref"
           }
0
source

Source: https://habr.com/ru/post/1621139/


All Articles