Skip to content

Split the /security/token endpoint into two separate endpoints #422

@alexmerlin

Description

@alexmerlin

Bug Report

Running the OpenAPI docs generator command:

./vendor/bin/openapi ./src --output public/openapi.yaml --version 3.1.0

we see the following output:

Warning: Unable to merge @OA\Post() in /var/www/api.dotkernel.localhost/html/src/Security/src/OpenAPI.php on line 116

This happens because both the generate and refresh token endpoints have the same URL (POST /security/token).

In order to fix this we must revert to using the pre-6.0 URLs, where both endpoints had their own unique URL:

  • POST /security/generate-token
  • POST /security/refresh-token

The endpoints themselves don't have to be the exact same ones we used on branch 5.0, they just need to be different.

Q A
Version(s) 6.x

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions