-
Notifications
You must be signed in to change notification settings - Fork 4
Initial yaml spec for device max bitrate #11
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
|
@eric-murray . Tagging Eric as he has shared his inputs in the discussion #9 . I am unable to take part in the meeting series for this project as it is scheduled for 4 am my time. |
|
I would like to evaluate the options to make this API a candidate for Fall 25 release. |
| value: | ||
| status: 401 | ||
| code: UNAUTHORIZED | ||
| message: Authentication information is missing or invalid |
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.
As per commonalities:pre-release r3.1, we can follow the below
Generic401:
description: Authentication problem with the client request
headers:
x-correlator:
$ref: "#/components/headers/x-correlator"
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/ErrorInfo"
- type: object
properties:
status:
enum:
- 401
code:
enum:
- UNAUTHENTICATED
examples:
GENERIC_401_UNAUTHENTICATED:
description: Request cannot be authenticated and a new authentication is required
value:
status: 401
code: UNAUTHENTICATED
message: Request not authenticated due to missing, invalid, or expired credentials. A new authentication is required.
| value: | ||
| status: 429 | ||
| code: TOO_MANY_REQUESTS | ||
| message: Rate limit exceeded |
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.
Generic429:
description: Too Many Requests
headers:
x-correlator:
$ref: "#/components/headers/x-correlator"
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/ErrorInfo"
- type: object
properties:
status:
enum:
- 429
code:
enum:
- QUOTA_EXCEEDED
- TOO_MANY_REQUESTS
examples:
GENERIC_429_QUOTA_EXCEEDED:
description: Request is rejected due to exceeding a business quota limit
value:
status: 429
code: QUOTA_EXCEEDED
message: Out of resource quota.
GENERIC_429_TOO_MANY_REQUESTS:
description: Access to the API has been temporarily blocked due to rate or spike arrest limits being reached
value:
status: 429
code: TOO_MANY_REQUESTS
message: Rate limit reached.
| description: Correlation id passed by client for request tracing | ||
| schema: | ||
| type: string | ||
| pattern: ^[a-zA-Z0-9-]{0,55}$ |
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.
we can put example
example: "b4333c46-49c0-4f62-80d7-f0ef930f1c46". Commonalities have added an XCorrelator schema to CAMARA_common.yaml.
| post: | ||
| security: | ||
| - openId: | ||
| - media-rate:retrieve |
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 would use the full endpoint name here, the logic being that, maybe one day an additional retrieve endpoint will be added, and if the scope needed to be renamed, that would be a breaking change. Using the full endpoint name ensures there will be no clashes or ambiguity in future.
| - media-rate:retrieve | |
| - media-rate:retrieve-max-media-rate |
| type: string | ||
| example: "123456789@domain.com" | ||
|
|
||
| PhoneNumber: |
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.
PhoneNumber schema was updated to require the leading +. See here.
|
Hi @maheshc01 Apologies for the delay in reviewing this. Preparing other APIs for the forthcoming meta-release has consumed most of my time recently. I made some comments / suggestions, but this is fine as a "work in progress`, and non-compliance with Commonalities can be fixed later. One change you need to make is to the filename, as this should not contain any version number. So should be A more general comment is on the naming. My thoughts are:
On the documentation, I think that could be expanded to explain use of this API as a more general measure of device connection quality. So whilst one use case could indeed be rate adaption for media streaming, the maximum media streaming rate can also be used as a proxy for the general quality of the connection to the device. Again, the documentation can be updated at a later time. |
Hi @eric-murray , Thank you for your response and i can understand the focus required to get the fall 25 release through. I was also considering to introduce an subscription /notification variation of the API, keeping it aligned with all the other Device status related APIs we have. |
|
@eric-murray Update before the call today. Will prioritize to complete this before the next device status call. |
|
@maheshc01 Looking on the comments I assume that the name of the API will change. Please make sure that the filename will be exactly the api-name within the server URL (important for planned automation across the repositories) - it can still be changed, but consistently. And then I have seen the URL https://github.com/camaraproject/MediaRate within the externalDocs object. Does that suggest to rename the repository for the purpose of the API? That could make sense, it would require an issue in API Backlog. |
|
all the review comments have been addressed and additional issues have been created for tracking some of the open discussions points. |
Co-authored-by: Eric Murray <eric.murray@vodafone.com>
Co-authored-by: Eric Murray <eric.murray@vodafone.com>
|
Will close and reopen the PR to reset the linting check after #16 |
|
All good from centralized megalinter perspective (the cancelled legacy check can be ignored). |
|
Thanks @maheshc01 Looks good. Only one minor comment. Otherwise I'm happy to approve. Hopefully we agree to merge this at the next meeting. |
Co-authored-by: Eric Murray <eric.murray@vodafone.com>
|
are we good to merge the code? |
I'm happy, and have approved. Just needs a codeowner to approve as well. |
|
Thank for everyone's support in getting this PR reviewed and merged. |
|
sorry.. I realized that the code is not merged yet and i am still waiting to get the maintainer role to be able to do it myself. |
@maheshc01 sorry for the delay, I haven't seen the update on your codeowners PR. |
|
the PR has been reviewed and approved. |
What type of PR is this?
Updates to address issue #10
Add one of the following kinds:
What this PR does / why we need it:
Provide an initial proposed API specification.
Which issue(s) this PR fixes:
Fixes #10