-
Notifications
You must be signed in to change notification settings - Fork 45
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
SED | OED | EAM | AED discovery operations: move device identifiers from request headers to request object #336
Comments
Updated following comment from @JoseMConde below Suggested operation path resource names:EAM: SED: OED: AED: (note: the n 's are because an unbounded array represents a security risk) Suggested request object for POST operations:EAM: SED:
OED: AED: |
Thanks @Kevsy , very interesting discussion, some thoughts: |
Thanks @JoseMConde -
Good point! Yes:, the operation should change from
Yes, I agree - it is an API call which does not involve sensitive request parameters
Sure, that makes sense. I've amended my comment above to reflect these points. |
I think the suggested approach outlined above by @Kevsy in #336 (comment) sounds great, I don't see any issues with it. |
Just a minor comment on naming convention followed is that typically any action oriented words like "retrieve" are suggested to be avoided as the HTTP method type GET, POST, PUT etc. are expected to play that role indicating the required action. So it is just to explore if we need to stick to such practices as there are always exceptional cases where such practices can be relaxed as well depending upon the use case requirement. |
@gunjald I agree there are arguments to be made either way, but it's part of API Design Guidelines, specifically: "When the POST method is used:
|
Thanks @Kevsy for the information and is very useful. I am aligned with the proposal. |
Note SimpleEdgeDiscovery PR #78 includes the change, although I will make a separate PR to update the developer documentation once it is approved. |
Problem description
As part of the Release Management review for SimpleEdgeDiscovery, TSC Chair @hdamker commented that SED uses request headers rather than a request object to pass device identifiers. Although that is supported by the current API design guidelines, SimpleEdgeDiscovery is the only stable CAMARA API using request headers for device identifiers. For consistency, SimpleEdgeDiscovery (SED), OptimalEdgeDiscovery (OED), EdgeApplicationManagement (EAM), ApplicationEndpointDiscovery (AED) should refactor any discovery operations requiring device identifiers from GET to POST.
Expected behavior
For Edge Cloud Zone discovery operations that require a device identifier:
For Edge Cloud Zone discovery operations that do not require a device identifier, we can keep
GET /edge-cloud-zones
Alternative solution
Additional context
The text was updated successfully, but these errors were encountered: