Questions tagged [nelmioapidocbundle]

The NelmioApiDocBundle bundle allows you to generate a decent documentation for your APIs.

The NelmioApiDocBundle bundle allows you to generate a decent documentation for your APIs. More information on the github page.

118 questions
0
votes
1 answer

NelmioApiDocBundle 4 how upload file in attributes

I have a problem with uploading files using nelmio version 4 with arguments, the documentation is quite poor and I can't find a solution. You can't use in: 'formData' which worked in earlier versions, I also tried zwagger examples and it didn't work…
arosa
  • 1
  • 2
0
votes
0 answers

API Request body format accepted by form

I build an API with Symfony, so I create a CRUD for an entity, and I import Nelmio Api Doc Bundle for generate a doc with Swagger. I build POST action with a form, and in the request body, I need to add products relation to the cart I create. So…
0
votes
0 answers

setting up nelmio_api_doc YAML to omit bearer security token requirement on login API endpoint

I need to set up security schemes, so that the login_check DOET NOT require the Bearer token. I got the setup below and everything works fine. Once I get the bearer token, I use the authentication feature of Nelmio, I add the token into the…
Casso
  • 139
  • 6
0
votes
1 answer

ApiPlatform API docs: how to create areas like in NelmioApiDocs?

I'd like to create "area"s in docs generated by ApiPlatform. Something like NelmioApiDocs allow to do (https://symfony.com/bundles/NelmioApiDocBundle/current/areas.html) Is it possible in ApiPlatform? How If not, is there any other concept that can…
Aerendir
  • 6,152
  • 9
  • 55
  • 108
0
votes
0 answers

I can't make friends with NelmioApiDocBundle

"symfony/symfony": "3.3.*", "nelmio/api-doc-bundle": "^3.0", "sensio/framework-extra-bundle": "^5.0", "php": "7.1" there is a response { "data": { "same":"data" }, "error": {} } I do it according to the documentation @SWG\Response( …
MaXyC
  • 27
  • 5
0
votes
2 answers

symfony nelmio apidoc bundle: areas for yaml-defined method (token refresh from gesdinet)

While upgrading to php8.1 I had to upgrade several modules of my current project, including gesdinet's refresh-token. A ghost method was present in my controller so I could document this api with annotations but it's not possible anymore. I managed…
Valfreyja
  • 21
  • 2
0
votes
1 answer

How to show input and output exemple with nelmio-api-bundle and php8.1

I'm currently trying to make an API doc page thanks to nelmio-api-bundle. I only have one route which is a POST route. I'm receiving a JSON in the body of the request and I'm using the Serializer from symfony to deserialize it in a DTO. I'm also…
jeff
  • 35
  • 6
0
votes
1 answer

Symfony 6 - lexik JWT - Authenticator does not support the request

I'm having some problems with lexik JWT bundle and Symfony 6.0, for swagger I use NelmioApiDocBundle. The thing is, that every in swagger works before I decide to apply my Authorization Token (Bearer token), which is generated from lexik JWT. But…
Tchiggy
  • 131
  • 2
  • 11
0
votes
0 answers

Swagger returns authentication required

I followed official documentation and this post so I can configure Swagger on my Symfony project. As I am in my local environment I tried to access: http://localhost:8083/api/doc to see if everything is setup. The route renders:…
bjhonna
  • 11
  • 3
0
votes
1 answer

How to set @SWG\Info annotation for only area in Symfony using NelmioApiDocBundle

/** * @SWG\Swagger( * @SWG\Info( * title="My first swagger documented API", * version="1.0.0" * ) * ) */ I tried to write this block in: my base controller - src/MyProject/ApiBundle/Controller/SiteApi/SiteApiBaseController.php my…
0
votes
1 answer

Symfony api/doc route shows 404 on live server, but is OK on localhost

I have deployed my Symfony 5 app on live server (production). I left my .env file with DEV variables. Firstly my my homepage index.php was showing 404 URL not found on the server, so I had to execute ln -s public_src public and since that my…
yukitmp
  • 15
  • 3
0
votes
0 answers

symfony 5 nelmio api doc no return

first of all sorry for my bad english. I want to use NelmioApiDoc for my api, for the installation and configuration i have no problems and my route return this result : nemlio return The is when I try to insert annotation to my controller, nothing…
elfe
  • 1
  • 1
0
votes
2 answers

How to Install Swagger on Symfony 4?

I started to install like this: https://symfony.com/doc/4.x/bundles/NelmioApiDocBundle/index.html Step 1. `composer require nelmio/api-doc-bundle` - Thats OK Step 2. class AppKernel extends Kernel { public function…
Den
  • 19
  • 1
  • 6
0
votes
1 answer

NelmioApiDocBundle set Response content type as file

I am using NelmioApiDocBundle 4.0 to generate the documentation of my API. The problem started when i tried to set a response type as a file. I have a method that gets a file from database and returns it as StreamedResponse: return new…
0
votes
1 answer

PSR-7 validation with regex possible? (parameter clash)

I'm currently generating OpenAPI annotations via Symfony (5.1) Routes and NelmioApiDocBundle, One of the routes looks like this: * @Route("/users/{id}", methods={"GET"}, requirements={"id": "\d+"}) * @OA\Parameter(name="id", in="path",…
Oliver Adria
  • 1,123
  • 11
  • 23