Updating the documentation for the change in url to align with the latest specification.
Change-Id: I6812535c3556083ce8b44ad2fb03dc857eb3f6a7
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Then test the server with an invocation such as this::
Then test the server with an invocation such as this::
- curl localhost:10000/a1-p/healthcheck
+ curl localhost:10000/A1-P/v2/healthcheck
- curl docker-host-name-or-ip:10000/a1-p/healthcheck
+ curl docker-host-name-or-ip:10000/A1-P/v2/healthcheck
- * Rename all /ric/ URLs to be consistent with requirements of /a1-p/
+ * Rename all /ric/ URLs to be consistent with requirements of /A1-P/v2/
- $ curl -X PUT --header "Content-Type: application/json" --data-raw @create.json "http://localhost/a1-p/policytypes/20008"
+ $ curl -X PUT --header "Content-Type: application/json" --data-raw @create.json "http://localhost/A1-P/v2/policytypes/20008"
Send the following JSON to create an instance of policy type 20008:
Send the following JSON to create an instance of policy type 20008:
- $ curl -X PUT --header "Content-Type: application/json" --data '{"threshold" : 5}' "http://localhost/a1-p/policytypes/20008/policies/tsapolicy145"
+ $ curl -X PUT --header "Content-Type: application/json" --data '{"threshold" : 5}' "http://localhost/A1-P/v2/policytypes/20008/policies/tsapolicy145"
Integrating Xapps with A1
Integrating Xapps with A1
- $ curl -v -X GET "http://localhost/a1-p/healthcheck"
+ $ curl -v -X GET "http://localhost/A1-P/v2/healthcheck"
- $ curl -X GET "http://localhost/a1-p/policytypes/"
+ $ curl -X GET "http://localhost/A1-P/v2/policytypes/"
- $ curl -s -X GET "http://localhost/a1-p/policytypes/20001" | jq .
+ $ curl -s -X GET "http://localhost/A1-P/v2/policytypes/20001" | jq .
- $ curl -s -X GET "http://localhost/a1-p/policytypes/20001/policies/" | jq .
+ $ curl -s -X GET "http://localhost/A1-P/v2/policytypes/20001/policies/" | jq .
- $ curl -s -X GET "http://localhost/a1-p/policytypes/20001/policies/1234" | jq .
+ $ curl -s -X GET "http://localhost/A1-P/v2/policytypes/20001/policies/1234" | jq .
- $ curl -X PUT "http://localhost/a1-p/policytypes/21003/" -H "Content-Type: application/json" -d @policy_schema_ratecontrol.json
+ $ curl -X PUT "http://localhost/A1-P/v2/policytypes/21003/" -H "Content-Type: application/json" -d @policy_schema_ratecontrol.json
$ cat policy_schema_ratecontrol.json
$ cat policy_schema_ratecontrol.json
- $ curl -X PUT "http://localhost/a1-p/policytypes/21003/policies/1234" -H "Content-Type: application/json" -d @policy_instance_ratecontrol.json
+ $ curl -X PUT "http://localhost/A1-P/v2/policytypes/21003/policies/1234" -H "Content-Type: application/json" -d @policy_instance_ratecontrol.json
$ cat policy_instance_ratecontrol.json
$ cat policy_instance_ratecontrol.json
- $ curl -s -X GET "http://localhost/a1-p/policytypes/21004/policies/1235/status" | jq .
+ $ curl -s -X GET "http://localhost/A1-P/v2/policytypes/21004/policies/1235/status" | jq .
- $ curl -s -X DELETE "http://localhost/a1-p/policytypes/21004/"
+ $ curl -s -X DELETE "http://localhost/A1-P/v2/policytypes/21004/"
#. Delete policy instance
.. code::
#. Delete policy instance
.. code::
- $ curl -s -X DELETE "http://localhost/a1-p/policytypes/21004/policies/1234/"
+ $ curl -s -X DELETE "http://localhost/A1-P/v2/policytypes/21004/policies/1234/"
#. A1-EI data delivery for a job id:
#. A1-EI data delivery for a job id: