Go to primary content
Oracle® Communications Diameter Signaling Router Service Capability Exposure Function User's Guide
Release 8.4
F12301-02
Go To Table Of Contents
Contents

Previous
Previous
Next
Next

Create API

Run this curl command to create the API:
curl -X POST -u <partner and API management portal username> -k https://<App Server IP>:9002/portal/prm/prm_pm_rest/services/prm_pm/services/partner_manager/api/PartnerManagerApi/createAPI -H 'Content-Type: application/json' -H 'cache-control: no-cache' -d '{"createAPI":{"apiObject":{"apiDisplayName":"3gpp-as-session-with-qos","apiName":"apiroot-qos","apiVersion":"v1","apiInterfaces":[{"name":"apiroot-qos-vv1","apiMethods":[{"name":"as_session_with_qos_post","displayName":"as_session_with_qos_post","path":"3gpp-as-session-with-qos/v1/{scsAsId}/subscriptions/","httpVerb":"POST","servicePath":"3gpp-as-session-with-qos/v1/{scsAsId}/subscriptions/","serviceHttpVerb":"POST","expose":true},{"name":"as_session_with_qos_put","displayName":"as_session_with_qos_put","path":"3gpp-as-session-with-qos/v1/{scsAsId}/subscriptions/{subscriptionId}","httpVerb":"PUT","servicePath":"3gpp-as-session-with-qos/v1/{scsAsId}/subscriptions/{subscriptionId}","serviceHttpVerb":"PUT","expose":true},{"name":"as_session_with_qos_delete","displayName":"as_session_with_qos_delete","path":"3gpp-as-session-with-qos/v1/{scsAsId}/subscriptions/{subscriptionId}","httpVerb":"DELETE","servicePath":"3gpp-as-session-with-qos/v1/{scsAsId}/subscriptions/{subscriptionId}","serviceHttpVerb":"DELETE","expose":true}],"displayName":"apiroot-qos-vv1","fileLocation":"https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=3239"}],"wadlFiles":[],"northBoundWadlFiles":[],"description":"Setup and manage AS session with required QoS ","facade":"REST","direction":"AOMT","serviceType":"by-url","protocol":"http://10.10.10.10","privilege":0,"link":"https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=3239","accessType":"BOTH","apiAuthTypes":["TEXT","OAUTH"],"authType":"NONE","authToken":"","networkProxy":"","networkAuthorizationURI":"","networkTokenURI":"","networkClientRedirectURI":"","groups":[],"icon":"expressive/api.png"}}}'

Note:

Content within <> must be filled with appropriate value.
Example response:
{"createAPIResponse":{"apiId":"77474356-2983-422a-9074-37d602786726"}}