-
Notifications
You must be signed in to change notification settings - Fork 2
Feature | Extend Swagger Coverage for controller OAuth2PaymentGatewayProfileApiController
#372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c94fc68 to
9a8387b
Compare
89f24ad to
1b2743b
Compare
OAuth2PaymentGatewayProfileApiController
20d40b7 to
44e5dd7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matiasperrone-exo Looking at this I don't see "oauth2_security_scope" defined anywhere.
0c2cca6 to
cc60f7c
Compare
@caseylocker thanks! I added a new security schema and replaced with the correct scopes |
smarcet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matiasperrone-exo please review comments
ecdc3d9 to
f179b81
Compare
627f001 to
752af36
Compare
|
@caseylocker Please review again. All the conflicts were resolved, the security schema created and also the related security roles were included. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matiasperrone-exo The format of the security definitions is incorrect. Missing inner array brackets around the scopes:
// Current (INVALID)
security: [['summit_payment_gateway_oauth2' =>
SummitScopes::ReadAllSummitData,
SummitScopes::ReadPaymentProfiles
]],
// Required (CORRECT)
security: [['summit_payment_gateway_oauth2' => [
SummitScopes::ReadAllSummitData,
SummitScopes::ReadPaymentProfiles
]]],
We're also missing the operationId on all endpoints. Endpoints and suggestions...
| GET /api/v1/summits/{id}/payment-gateway-profiles | getAllPaymentGatewayProfiles |
|---|---|
| GET /api/v1/summits/{id}/payment-gateway-profiles/{payment_profile_id} | getPaymentGatewayProfile |
| POST /api/v1/summits/{id}/payment-gateway-profiles | createPaymentGatewayProfile |
| PUT /api/v1/summits/{id}/payment-gateway-profiles/{payment_profile_id} | updatePaymentGatewayProfile |
| DELETE /api/v1/summits/{id}/payment-gateway-profiles/{payment_profile_id} | deletePaymentGatewayProfile |
0250dff to
0426fe9
Compare
caseylocker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please double check your security scopes syntax. 4 are missing array brackets.
// WRONG
'summit_payment_gateway_oauth2' =>
SummitScopes::ReadAllSummitData,
SummitScopes::ReadPaymentProfiles
// Correct
security: [
[
'summit_payment_gateway_oauth2' => [
SummitScopes::ReadAllSummitData,
SummitScopes::ReadPaymentProfiles
]
]
],
…uth2PaymentGatewayProfileApiController.php
0426fe9 to
e33a3c4
Compare
|
Thanks @caseylocker for the comments. Now is ready to review again. I fixed the missing brackets and the rebase conflicts |
caseylocker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
smarcet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Task:
Ref: https://app.clickup.com/t/86b6wkgxj