Skip to content

Commit 18884a6

Browse files
committed
Merge branch 'hotfix/0.2.2'
2 parents 0e0ee63 + bf35f52 commit 18884a6

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Asic Verifier for X-Road
3535
docker run -d --rm --platform linux/amd64 -p '80:80' --name asicverifier pipinfitriadi/asicverifier
3636
```
3737

38-
> RESTful API's docs should be available at [http://0.0.0.0/docs](http://0.0.0.0/docs)
38+
> RESTful API's docs should be available at [http://0.0.0.0/](http://0.0.0.0/)
3939
4040
- Shut down:
4141
@@ -70,7 +70,7 @@ asicverifier:
7070
docker compose up -d
7171
```
7272
73-
> RESTful API's docs should be available at [http://0.0.0.0/docs](http://0.0.0.0/docs)
73+
> RESTful API's docs should be available at [http://0.0.0.0/](http://0.0.0.0/)
7474

7575
- Shut down:
7676

asicverifier/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def asicverifier(
221221
member_class=member_class,
222222
member_code=member_code,
223223
subsystem_code=subsystem_code,
224+
asice_type=asice_type,
224225
asice=response.text
225226
).items()
226227
])

asicverifier/restful_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def app() -> FastAPI:
129129
identifier=META_DATA['License'],
130130
url=f"{META_DATA['Home-page']}/blob/main/LICENSE"
131131
),
132-
docs_url=f'{RESTFUL_API_PATH}/docs',
132+
docs_url=f'{RESTFUL_API_PATH}/',
133133
redoc_url=f'{RESTFUL_API_PATH}/redoc',
134134
openapi_url=f'{RESTFUL_API_PATH}/openapi.json'
135135
)

tests/test_restful_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self, methodName: str = 'runTest'):
3131
@mock.patch('asicverifier.requests.get', side_effect=mocked_requests_get)
3232
def test_app(self, _):
3333
client: TestClient = TestClient(RestfulApi.app())
34-
self.assertEqual(client.get('/docs').status_code, 200)
34+
self.assertEqual(client.get('/').status_code, 200)
3535
self.assertDictEqual(
3636
client.post(
3737
'/',

0 commit comments

Comments
 (0)