Conversation
60e41ee to
e8e90dc
Compare
e8e90dc to
09fc7e3
Compare
fa093a1 to
561cbd8
Compare
caseylocker
left a comment
There was a problem hiding this comment.
Incorrect namespace as per project standards for Swagger
App\Swagger\security should be App\Swagger\schemas
Public endpoints have the wrong path.
Wrong:
/api/v1/elections/current
Right:
/api/public/v1/elections/current
Wrong
/api/v1/elections/current/candidates
Right
/api/public/v1/elections/current/candidates
Wrong
/api/v1/elections/current/candidates/gold
Right
/api/public/v1/elections/current/candidates/gold
caseylocker
left a comment
There was a problem hiding this comment.
The 3 public endpoints are defined in routes/public_api.php which has prefix api/public/v1 (see RouteServiceProvider.php:110).
Documented (incorrect):
/api/v1/elections/current
/api/v1/elections/current/candidates
/api/v1/elections/current/candidates/gold
Actual (correct):
/api/public/v1/elections/current
/api/public/v1/elections/current/candidates
/api/public/v1/elections/current/candidates/gold
812ef91 to
903c6c6
Compare
|
@andrestejerina97 please review conflicts |
c6ecdd0 to
728ae67
Compare
903c6c6 to
2a5b0cf
Compare
OAuth2ElectionsApiController
Signed-off-by: Matias Perrone <github@matiasperrone.com>
2a5b0cf to
4f18a22
Compare
Signed-off-by: Matias Perrone <github@matiasperrone.com>
ref: https://app.clickup.com/t/86b6wkh9k