From: Matthew Jordan Date: Sat, 20 Sep 2014 23:41:55 +0000 (+0000) Subject: rest-api/api-docs: Correct basePath in resources to match top resources file X-Git-Tag: 14.0.0-beta1~1637 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de6e467db7b9bba52500182455c577e031dd9365;p=thirdparty%2Fasterisk.git rest-api/api-docs: Correct basePath in resources to match top resources file The resources.json file that defines the resource JSON files used with ARI references a basePath of 'http://localhost:8088/ari'. This does not match what is defined in the resource files themselves, 'http://localhost:8088/stasis'. The correct base path is the one that includes 'ari' in the URL; this patch updates the various resource JSON files to have the correct basePath. ASTERISK-24339 #close Reported by: Bradley Watkins ........ Merged revisions 423617 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 423618 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@423619 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/rest-api/api-docs/applications.json b/rest-api/api-docs/applications.json index 4234282c52..9ac1c2383c 100644 --- a/rest-api/api-docs/applications.json +++ b/rest-api/api-docs/applications.json @@ -4,7 +4,7 @@ "_svn_revision": "$Revision$", "apiVersion": "1.5.0", "swaggerVersion": "1.1", - "basePath": "http://localhost:8088/stasis", + "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/applications.{format}", "apis": [ { diff --git a/rest-api/api-docs/asterisk.json b/rest-api/api-docs/asterisk.json index fd8f6d3d69..34e3894a2e 100644 --- a/rest-api/api-docs/asterisk.json +++ b/rest-api/api-docs/asterisk.json @@ -4,7 +4,7 @@ "_svn_revision": "$Revision$", "apiVersion": "1.5.0", "swaggerVersion": "1.1", - "basePath": "http://localhost:8088/stasis", + "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/asterisk.{format}", "apis": [ { diff --git a/rest-api/api-docs/bridges.json b/rest-api/api-docs/bridges.json index cadf4ae0df..de72067205 100644 --- a/rest-api/api-docs/bridges.json +++ b/rest-api/api-docs/bridges.json @@ -4,7 +4,7 @@ "_svn_revision": "$Revision$", "apiVersion": "1.5.0", "swaggerVersion": "1.1", - "basePath": "http://localhost:8088/stasis", + "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/bridges.{format}", "apis": [ { diff --git a/rest-api/api-docs/channels.json b/rest-api/api-docs/channels.json index 945c333b7a..d88434b3eb 100644 --- a/rest-api/api-docs/channels.json +++ b/rest-api/api-docs/channels.json @@ -4,7 +4,7 @@ "_svn_revision": "$Revision$", "apiVersion": "1.5.0", "swaggerVersion": "1.1", - "basePath": "http://localhost:8088/stasis", + "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/channels.{format}", "apis": [ { diff --git a/rest-api/api-docs/deviceStates.json b/rest-api/api-docs/deviceStates.json index 95decd9888..c14b55deae 100644 --- a/rest-api/api-docs/deviceStates.json +++ b/rest-api/api-docs/deviceStates.json @@ -4,7 +4,7 @@ "_svn_revision": "$Revision$", "apiVersion": "1.5.0", "swaggerVersion": "1.1", - "basePath": "http://localhost:8088/stasis", + "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/deviceStates.{format}", "apis": [ { diff --git a/rest-api/api-docs/endpoints.json b/rest-api/api-docs/endpoints.json index e8434ba9be..f30ce9a006 100644 --- a/rest-api/api-docs/endpoints.json +++ b/rest-api/api-docs/endpoints.json @@ -4,7 +4,7 @@ "_svn_revision": "$Revision$", "apiVersion": "1.5.0", "swaggerVersion": "1.1", - "basePath": "http://localhost:8088/stasis", + "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/endpoints.{format}", "apis": [ { diff --git a/rest-api/api-docs/events.json b/rest-api/api-docs/events.json index 2623801ae8..80bc6d66f8 100644 --- a/rest-api/api-docs/events.json +++ b/rest-api/api-docs/events.json @@ -4,7 +4,7 @@ "_svn_revision": "$Revision$", "apiVersion": "1.5.0", "swaggerVersion": "1.2", - "basePath": "http://localhost:8088/stasis", + "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/events.{format}", "apis": [ { diff --git a/rest-api/api-docs/mailboxes.json b/rest-api/api-docs/mailboxes.json index 002c79bbbf..0deb5fb412 100644 --- a/rest-api/api-docs/mailboxes.json +++ b/rest-api/api-docs/mailboxes.json @@ -4,7 +4,7 @@ "_svn_revision": "$Revision$", "apiVersion": "1.5.0", "swaggerVersion": "1.1", - "basePath": "http://localhost:8088/stasis", + "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/mailboxes.{format}", "apis": [ { diff --git a/rest-api/api-docs/playbacks.json b/rest-api/api-docs/playbacks.json index 79cedb7a8b..f892fb3d25 100644 --- a/rest-api/api-docs/playbacks.json +++ b/rest-api/api-docs/playbacks.json @@ -4,7 +4,7 @@ "_svn_revision": "$Revision$", "apiVersion": "1.5.0", "swaggerVersion": "1.1", - "basePath": "http://localhost:8088/stasis", + "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/playbacks.{format}", "apis": [ { diff --git a/rest-api/api-docs/recordings.json b/rest-api/api-docs/recordings.json index 0e077e206f..89c55d59e4 100644 --- a/rest-api/api-docs/recordings.json +++ b/rest-api/api-docs/recordings.json @@ -4,7 +4,7 @@ "_svn_revision": "$Revision$", "apiVersion": "1.5.0", "swaggerVersion": "1.1", - "basePath": "http://localhost:8088/stasis", + "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/recordings.{format}", "apis": [ { diff --git a/rest-api/api-docs/sounds.json b/rest-api/api-docs/sounds.json index b97f725d4b..dd0b717556 100644 --- a/rest-api/api-docs/sounds.json +++ b/rest-api/api-docs/sounds.json @@ -4,7 +4,7 @@ "_svn_revision": "$Revision$", "apiVersion": "1.5.0", "swaggerVersion": "1.1", - "basePath": "http://localhost:8088/stasis", + "basePath": "http://localhost:8088/ari", "resourcePath": "/api-docs/sounds.{format}", "apis": [ {