Skip to content

Commit

Permalink
add github link to /about endpoint
Browse files Browse the repository at this point in the history
Make it easier to discover the upstream source code for this
application.
  • Loading branch information
ktdreyer committed Jun 8, 2022
1 parent 22aefb9 commit d80297f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion product_listings_manager/rest_api_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def get(self):

class About(Resource):
def get(self):
return {"version": __version__}
return {
"source": "https://github.com/release-engineering/product-listings-manager",
"version": __version__,
}


class Health(Resource):
Expand Down
5 changes: 4 additions & 1 deletion tests/test_rest_api_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ def test_get_version(self, client):

r = client.get("/api/v1.0/about")
assert r.status_code == 200
assert r.get_json() == {"version": __version__}
assert r.get_json() == {
"source": "https://github.com/release-engineering/product-listings-manager",
"version": __version__,
}


class TestHealth(object):
Expand Down

0 comments on commit d80297f

Please sign in to comment.