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 Views for Posts (Item) #2

Closed
iesteban opened this issue Sep 5, 2016 · 1 comment
Closed

Create API Views for Posts (Item) #2

iesteban opened this issue Sep 5, 2016 · 1 comment
Projects

Comments

@iesteban
Copy link
Collaborator

iesteban commented Sep 5, 2016

Endpoint for the feed of items (posts) the user will see:

-/api/v1/posts/feed -> The feed ordered by the location/publishing time of the user.
- URL parameters:
- Lat: Latitude to order by geolocation
- Lon: Longitude to order by geolocation
- category: Category id to filter by that category
- search: String to search item using that string

The default order should be by distance.

In the future, another get param can be order with two options: distance, recent

@s-nt-s
Copy link
Contributor

s-nt-s commented Nov 13, 2016

follow in #20

@s-nt-s s-nt-s closed this as completed Nov 13, 2016
iesteban pushed a commit that referenced this issue Dec 8, 2016
Using Django Rest Framework generic filters
@iesteban iesteban moved this from Merged to 'master' to Done in Back-end Feb 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants