Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Multiple endpoints or multiple API within one API 'Family'? #178

@bigludo7

Description

@bigludo7

Hello

We have a pattern question in Device location (that was also raised in device status) that probably require a global gouvernance.

As of now we have one feature in this API: Check Device Location. We'll add subscription management but globally this is always same function to check where is a device with a geo location provided as input.

We have a request to add another feature: Provides (Get) Device location (I will not comment on privacy in this issue). This is a distinct feature .

We are hesitating on the pattern:

  1. Keep one API (Device location ) and provide distinct endpoint in the OAS (one for check and for for get)
  2. Describe a second API within Device Location family focused only on this get function

Solution 1. seems the more straightforward are both features are very close... but with additional thinking solution 2. bring flexibility for versioning but also to expose clearly to developer the capabilities (indeed if a Telco offers the check but not the get, this is explicit with solution 2 while in solution 1, except if we add a home resource, developer will get a 501).

Same debate occurs in device status with roaming and connectivity.

cc: https://github.com/jlurien https://github.com/monamok

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions