-
Notifications
You must be signed in to change notification settings - Fork 60
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
Updating names qos-profile of endpoints #348
Updating names qos-profile of endpoints #348
Conversation
@RandyLevensalor thanks for the PR! I don't see a need to rename |
I'll be interested to see what developers' reaction to |
Interesting enough it was your proposal to start the experiment (#318 (comment)) 😄 ... I agree that it might make sense to reintroduce |
Agreed. Though now that we have the post, I'd like to explore some of the other filtering options including using an application profile from connectivity insight as a filter in the next release. |
Yes, that is a good point. It is much simpler to pass complex objects in a request body than using query parameters. A good enough reason in itself to have the |
@camaraproject/quality-on-demand_codeowners I don't see any objections. Do you want to approve and merge? |
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 ... just a kind of question about the scope name for the operation, see my comment above.
Co-authored-by: Herbert Damker <herbert.damker@telekom.de>
Accepted the scope change. This resets the approval. Thanks! |
@@ -124,20 +128,20 @@ paths: | |||
"503": | |||
$ref: "#/components/responses/Generic503" | |||
|
|||
/qos-profiles/{name}: | |||
/retrieve-qos-profile/{name}: |
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.
I thought we were going to keep GET /qos-profiles/{name}
. That would be the expected name for such an endpoint.
description: | | ||
Returns a QoS Profile that matches the given name. | ||
|
||
The access token may be either a 2-legged or 3-legged access token. If the access token is 3-legged, a QoS Profile is only returned if available to all end users associated with the access token. | ||
|
||
security: | ||
- openId: | ||
- qos-profiles:qos-profiles:read | ||
- qos-profiles:retrieve-qos-profiles |
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.
I don't see the need to have different scopes for the two endpoints. I'd suggest this endpoint also has scope qos-profiles:read
.
get: | ||
tags: | ||
- QoS Profiles | ||
summary: "Get QoS Profile for a given name" | ||
operationId: getQosProfile | ||
operationId: retrieveQosProfile |
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.
The original one was OK in line with the comment above
I'm feeling guilty to have created some confusion here as I have overseen that @RandyLevensalor had renamed both endpoints, the I agree here now with @eric-murray and @jlurien: the |
Ready for Codeowner approvals. |
What type of PR is this?
Add one of the following kinds:
What this PR does / why we need it:
Updates the endpoint names to include a verb.
Adds security scope to /retrieve-qos-profiles
Updates security scope on /retrieve-qos-profiles/{name}
Which issue(s) this PR fixes:
Fixes #345
Special notes for reviewers:
Should
/retrieve-qos-profiles/{name}
be singular/retrieve-qos-profile/{name}
since it only returns a single qos-profile.Changelog input
Additional documentation
This section can be blank.