Skip to content

Commit

Permalink
docs: Add docstring for photo metadata view
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe-Heffer-Shef committed Jun 17, 2024
1 parent caad431 commit b5101dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/btviewer/blueprints/photo/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ def detail(path: str):
"""
Show the photo metadata
:param path: The path of the data file
:return:
Usage:
/photos/1970-01-01/set_A/device_1234/camera_1/20200101_094359.123456_000002.json
:param path: The path of the data file (but with a JSON file extension)
:returns: The metadata for that photo as a JSON object.
"""
photo = Photo(path + '.np')
return flask.jsonify(photo.metadata)

0 comments on commit b5101dc

Please sign in to comment.