Closed devraj closed 2 months ago
While experimenting with responses to implement #5 I found that the discovery endpoint does not return an endpoint for features not licensed by the instance.
We should depend on the responses being set to None
for the particular endpoints and an exception being thrown by the client.
Partially handled by #7
We still need to ensure that we handle this in user interfaces to provide meaningful information to the users.
At an API level the developer is expected to catch and handle this.
Leaving this open until documentation is completed.
Gallagher API licenses features by the piece, if a feature isn't available the server responds with a
403
with the followingjson
:the API client should have the ability to handle these responses and throw an exception