Skip to content

Conversation

lilioid
Copy link
Contributor

@lilioid lilioid commented Feb 11, 2020

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

@lilioid lilioid force-pushed the feature/proper_api_framework branch from c7516eb to 548ef7d Compare February 11, 2020 18:19
@lilioid lilioid force-pushed the feature/proper_api_framework branch from 0c6a829 to b440f2f Compare February 11, 2020 19:07
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.
@lilioid lilioid marked this pull request as ready for review February 11, 2020 19:08
@lilioid lilioid requested a review from Akasch February 11, 2020 19:09
Copy link
Member

@Akasch Akasch left a 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

@lilioid
Copy link
Contributor Author

lilioid commented Feb 15, 2020

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

Copy link
Member

@Akasch Akasch left a 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

@lilioid lilioid merged commit 8a863bf into master Feb 18, 2020
@lilioid lilioid deleted the feature/proper_api_framework branch February 18, 2020 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce a proper API framework

2 participants