Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create API for commits and files #68

Closed
phyrog opened this issue Jan 28, 2017 · 1 comment
Closed

Create API for commits and files #68

phyrog opened this issue Jan 28, 2017 · 1 comment

Comments

@phyrog
Copy link
Contributor

phyrog commented Jan 28, 2017

Needed routes:

/repositories/:id/commits # List of commits in that repository
/repositories/:id/commits/:hash # One specific commit
/repositories/:id/commits/:hash/files # List of files at one specific commit
/repositories/:id/commits/:hash/files/:file_path # One specific file at one specific commit

Repository should include relationship to the list of commits. In the list of commits each commit should have a relationship to the list of files and each file in this list should link to the file url.
The repository should also include some information about the branches of the repository, especially which one is the default branch (needs to be implemented in the models first, see ontohub/ontohub-models#52).

@phyrog
Copy link
Contributor Author

phyrog commented Mar 6, 2017

@eugenk works on this in #9.

@phyrog phyrog closed this as completed Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant