Skip to content

Commit

Permalink
Merge pull request #42 from daisybio/swagger_ui
Browse files Browse the repository at this point in the history
Update docker-publish.yml
  • Loading branch information
strasserle authored Dec 18, 2024
2 parents c316b54 + 9cfd118 commit 78ce47b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

# Read the swagger.yml file to configure the endpoints
swagger_file = os.path.join(os.path.dirname(__file__), "swagger.yml")
connex_app.add_api(swagger_file, resolver=RelativeResolver('app.controllers'), options={"swagger_ui": True})
connex_app.add_api(swagger_file, resolver=RelativeResolver('app.controllers'))

# create a URL route in our application for "/"
@connex_app.route("/")
@connex_app.route("/sponge-api/")
def home():
return "SPONGEdb API"

Expand Down
3 changes: 2 additions & 1 deletion swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ info:
version: 2.0.0
title: SPONGE REST-API documentation
servers:
- url: /
- url: /sponge-api
description: Main (production) server
components:
parameters:
VersionParam:
Expand Down

0 comments on commit 78ce47b

Please sign in to comment.