Skip to content

Changes

Started by upstream project gerrit-pysim #2793
Started 1 day 0 hr ago
Queued 5 sec
Took 13 min on built-in

Summary

  1. esim/http_json_api: add alternative API interface (details)
Commit 0928d0b79a8eb172b278c6d012becfa34d290b97 by pmaier@sysmocom.de
esim/http_json_api: add alternative API interface

unfortunately the API changes introduced in change

I277aa90fddb5171c4bf6c3436259aa371d30d092

broke the API interface of http_json_api.py. This was taken into
account and necessary to introduce add the server functionality next
to the already existing client functionality. The changes to the API
were minimal and all code locations that use http_json_api.py
were re-aligned.

Unfortunately it was not clear at this point in time that there are
out-of-tree projects that could be affected by API changes in
http_json_api.py

To mitigate the problem this patch introduces an alternative API
interface to the JsonHttpApiFunction base class. This alternative
API interface works like the old API interface when the class is
instantiated in the original way. To make use of the revised client
the API use has to pass an additional keyword argument that defines
the role.

Related: SYS#7866
Change-Id: I2a5d4b59b12e08d5eae7a1215814d3a69c8921f6
The file was modifiedpySim/esim/http_json_api.py