[asterisk-bugs] [JIRA] (ASTERISK-26298) Swagger resources.json does not acknowledge http prefix

Dan Jenkins (JIRA) noreply at issues.asterisk.org
Tue Aug 16 04:38:56 CDT 2016


Dan Jenkins created ASTERISK-26298:
--------------------------------------

             Summary: Swagger resources.json does not acknowledge http prefix
                 Key: ASTERISK-26298
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26298
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_ari
    Affects Versions: 13.10.0, 12.8.2
            Reporter: Dan Jenkins


When giving a http prefix in http.conf, this prefixes all http routes successfully. 

I can go to 

/a-http-prefix-added-to-conf/ari/api-docs/resources.json

And that gives me back the correct json file - great news. We can see in the asterisk console the correct info too

Enabled URI's:
/a-http-prefix-added-to-conf/httpstatus => Asterisk HTTP General Status
/a-http-prefix-added-to-conf/phoneprov/... => Asterisk HTTP Phone Provisioning Tool
/a-http-prefix-added-to-conf/static/... => Asterisk HTTP Static Delivery
/a-http-prefix-added-to-conf/ari/... => Asterisk RESTful API
/a-http-prefix-added-to-conf/ws => Asterisk HTTP WebSocket

However, resources.json gives back an incorrect base bath. 

"basePath":"http://<address>:8000/ari" - it should be "basePath":"http://<address>:8000/a-http-prefix-added-to-conf/ari"



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list