[asterisk-bugs] [JIRA] (ASTERISK-26298) ari: Swagger resources.json does not acknowledge http prefix as configured in http.conf

Joshua Colp (JIRA) noreply at issues.asterisk.org
Sun Dec 17 15:34:08 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-26298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Colp updated ASTERISK-26298:
-----------------------------------

    Affects Version/s:     (was: 12.8.2)

> ari: Swagger resources.json does not acknowledge http prefix as configured in http.conf
> ---------------------------------------------------------------------------------------
>
>                 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
>            Reporter: Dan Jenkins
>         Attachments: patch
>
>
> 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