Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

API for everything #261

Merged
merged 68 commits into from
Jul 28, 2015
Merged

API for everything #261

merged 68 commits into from
Jul 28, 2015

Conversation

ptgolden
Copy link
Member

This PR:

  • Adds in information about items that was previously missing in the API in several places
  • Adds a way to include links with rels in JSON responses
  • Removes the frontend application, so that this application will only handle JSON API requests
  • Removes HTML rendering altogether

TODO:

Also, add width/height values to their representation. That might be
removed, but it made creating the leaflet.js interface easier.
Scans are handled with leaflet.js instead of Seadragon now

This substantially changes how document pages look now- there's a lot of
work left to do on it still.
This, rather than starting every URL for the API at the /api/ root
So that unauthenticated users are able to view notes that are not
private
All related to collapsing API and main url schemes
ValidationError wasn't being raised when there was something wrong with
the nested sections
.json/.html/.api replace trailing slashes in URLs now, instead of
following them
add "format" kwarg
Could be removed later if it's not appropriate
This commit adds the concept of links to resource views, and makes
pagination work with them. For now, only implemented in Note list and
retrieve views.
I'm not exactly sure what the deal was with this commit, it was all
written several months ago. I'm pretty sure it was necessary.

(sorry)

Regardless, a lot of this is going to get bombed away when we take HTML
rendering out of the API.
@ptgolden
Copy link
Member Author

Merging this so that work can go on master. All the things I pointed out in the original comment will move to an issue/milestone

ptgolden added a commit that referenced this pull request Jul 28, 2015
Use API for all data except auth; get rid of HTML interface (except auth)
@ptgolden ptgolden merged commit e37756a into master Jul 28, 2015
@ptgolden ptgolden deleted the api-everything branch October 19, 2015 17:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant