Skip to content

Commit

Permalink
#34: Change type of endpoint id to int
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Aug 22, 2019
1 parent 8fbbaeb commit f55879c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@
api.add_resource(UserGroupsFindOne, "/usergroups/findOne")

# Table specific endpoints
api.add_resource(UsersInvestigations, "/users/<string:id>/investigations")
api.add_resource(UsersInvestigationsCount, "/users/<string:id>/investigations/count")
api.add_resource(InstrumentsFacilityCycles, "/instruments/<string:id>/facilityCycles")
api.add_resource(InstrumentsFacilityCyclesCount, "/instruments/<string:id>/facilityCycles/count")
api.add_resource(UsersInvestigations, "/users/<int:id>/investigations")
api.add_resource(UsersInvestigationsCount, "/users/<int:id>/investigations/count")
api.add_resource(InstrumentsFacilityCycles, "/instruments/<int:id>/facilityCycles")
api.add_resource(InstrumentsFacilityCyclesCount, "/instruments/<int:id>/facilityCycles/count")
api.add_resource(InstrumentsFacilityCyclesInvestigations,
"/instruments/<string:id>/facilityCycles<string:id>/investigations")
"/instruments/<string:instrument_id>/facilityCycles<int:cycle_id>/investigations")
api.add_resource(InstrumentsFacilityCyclesInvestigationsCount,
"/instruments/<string:id>/facilityCycles<string:id>/investigations/count")
"/instruments/<string:instrument_id>/facilityCycles<int:cycle_id>/investigations/count")

if __name__ == "__main__":
app.run(debug=config.is_debug_mode())

0 comments on commit f55879c

Please sign in to comment.