-
Notifications
You must be signed in to change notification settings - Fork 0
Add proper Api framework #5
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
Conversation
this was done to document how this django application is configured
c7516eb
to
548ef7d
Compare
0c6a829
to
b440f2f
Compare
one ulr definition is defining routes under /<version>/api while the other defines routes under /. This is needed because /vector/... must be standards-compatible but is still a part of the mapping app an should therefore be defined in it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally good.
Before the can make the whole app accessible from the internet we have to implement permissions, as for example the reply from the vector/v1/512/all/...
endpoint can include secret api keys
True, that's why I've set it up so that only authenticated users are able to interact with the api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then it should be good
This adds django-rest-framework with two plugins as a basic implementation of using an API framework. It closes #3 although still work in progress.
This PR depends on #2