Skip to content
Snippets Groups Projects
Commit 7b794630 authored by David Trattnig's avatar David Trattnig
Browse files

Improved server section.

parent 95188985
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,21 @@ info:
url: https://www.gnu.org/licenses/agpl-3.0.en.html
version: 1.0.0
servers:
- url: https://virtserver.swaggerhub.com/AURA-Engine/engine-api/1.0.0
description: SwaggerHub API Auto Mocking
- url: '{protocol}://{api-host}:{port}/api/{version}'
description: Engine API
variables:
protocol:
default: http
enum:
- http
- https
api-host:
description: Hostname or IP for API Host
default: localhost
port:
default: "8008"
version:
default: v1
tags:
- name: public
description: Operations available to the public
......
......@@ -19,7 +19,7 @@ class TestInternalController(BaseTestCase):
Get active engine
"""
response = self.client.open(
'/AURA-Engine/engine-api/1.0.0/status/active',
'/status/active',
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
......@@ -30,7 +30,7 @@ class TestInternalController(BaseTestCase):
Report for one month
"""
response = self.client.open(
'/AURA-Engine/engine-api/1.0.0/report/{year_month}'.format(year_month='year_month_example'),
'/report/{year_month}'.format(year_month='year_month_example'),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
......
......@@ -18,7 +18,7 @@ class TestPublicController(BaseTestCase):
Get current track
"""
response = self.client.open(
'/AURA-Engine/engine-api/1.0.0/trackservice/current',
'/trackservice/current',
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
......@@ -29,7 +29,7 @@ class TestPublicController(BaseTestCase):
Get a single track by ID
"""
response = self.client.open(
'/AURA-Engine/engine-api/1.0.0/trackservice/{trackId}'.format(track_id=56),
'/trackservice/{trackId}'.format(track_id=56),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
......@@ -42,7 +42,7 @@ class TestPublicController(BaseTestCase):
query_string = [('offset', 56),
('limit', 50)]
response = self.client.open(
'/AURA-Engine/engine-api/1.0.0/trackservice',
'/trackservice',
method='GET',
query_string=query_string)
self.assert200(response,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment