API Design Guidelines: Optional API Operation for the Operator #212
Replies: 4 comments 2 replies
-
Hi Fabrizio, It will be great to get your input! |
Beta Was this translation helpful? Give feedback.
-
Separate API (service management API) to indicate [to API Consumer] what's restricted / not supported options [by an API Provider] in CAMARA service API(s) without having to create different yaml files. Example scenarios are provided in the slide deck referenced in the discussion link. |
Beta Was this translation helpful? Give feedback.
-
Proposal was reviewed and accepted to be treated as a new API by TSC. It is listed in the API backlog APIBacklog (listed as Capability and Runtime Restrictions) I think API designs should consider error conditions, including but not limited to scenario you describe above, but if we can proactively let API consumers know if an optional [operation, parameter, etc.] is not supported or not available before they invoke and receive the error message, it will enhance the developer and end-user experience (e.g. enable/disable UI controls). |
Beta Was this translation helpful? Give feedback.
-
This can be closed because of the new API: Capability and Runtime Restrictions |
Beta Was this translation helpful? Give feedback.
-
Considering camaraproject/EdgeCloud#218 (comment)
I can't see in the Guidelines this problem addressed. The question under discussion is: "Is it possible to define an operation as optional for the Operator to implement?" I mean, not a core feature of the API, but an additional one, that provides some more feature on top of the core ones. For the TI API we are introducing a new feature that is Automatic Mobility. The TI API, currently, must be invoked each time the UE moves among geographical areas (Zones or Regions). With this new feature the API Consumer can ask the API Producer to always apply the optimal routing. You can see that this feature is useful but not essential. Considering that this feature can be not easy to implement for the Operator, the idea is to provide this feature with a specific operation and to document it as optionally supported by the API Producer. This means that the API Consumer can get back "unsupported" when invoking the new method for Automatic Mobility. We are wondering if this is something that must be defined in the API Guidelines to have a homogeneous approach in CAMARA.
Beta Was this translation helpful? Give feedback.
All reactions