-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from JWCook/fancy-docs
Closes #52. This follows up from [PR #54](#54) and adds sample response data, usage examples, and unit tests for the few endpoints that didn't previously have any: - [x] `node_api.get_observations()` - [x] `node_api.get_all_observations()` - [x] `rest_api.get_all_observation_fields()` - [x] `rest_api.add_photo_to_observation()`
- Loading branch information
Showing
10 changed files
with
9,680 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"id": 1234, | ||
"observation_id": 1234, | ||
"photo_id": 1234, | ||
"position": null, | ||
"created_at": "2020-09-24T21:06:16.964-05:00", | ||
"updated_at": "2020-09-24T21:06:16.964-05:00", | ||
"old_uuid": null, | ||
"uuid": "f4ec883f-e835-4590-ab3e-97900bd454a5", | ||
"created_at_utc": "2020-09-25T02:06:16.964Z", | ||
"updated_at_utc": "2020-09-25T02:06:16.964Z", | ||
"photo": { | ||
"id": 1234, | ||
"user_id": 1234, | ||
"native_photo_id": "1234", | ||
"square_url": null, | ||
"thumb_url": null, | ||
"small_url": null, | ||
"medium_url": null, | ||
"large_url": null, | ||
"created_at": "2020-09-24T21:06:15.212-05:00", | ||
"updated_at": "2020-09-24T21:06:15.212-05:00", | ||
"native_page_url": null, | ||
"native_username": "username", | ||
"native_realname": "Firstname Lastname", | ||
"license": 2, | ||
"subtype": null, | ||
"native_original_image_url": null, | ||
"uuid": "632dddc1-85ad-4664-8438-de6e0afd7746", | ||
"license_name": "Creative Commons Attribution-NonCommercial License", | ||
"license_url": "http://creativecommons.org/licenses/by-nc/4.0/", | ||
"attribution": "(c) Firstname Lastname, some rights reserved (CC BY-NC)", | ||
"type": "LocalPhoto" | ||
} | ||
} |
Empty file.
Oops, something went wrong.