Open the-dagger opened 7 years ago
Hi, I'd like to work on this issue if its still available. Are you going to use Firebase Cloud Functions for this or a different Backend server? If so, please tell me the stack you'd be using. I am familiar with NodeJS(ExpressJS apps) and Python (Flask). Thanks!
@the-cybersapien Go ahead. 👍 The server is to be a custom built one and Flask should be a good idea for now.
@the-dagger I've started work on the backend. Created a front end, a few APIs and also integrated Google+ OAuth sign in Front end. Will be working on the remaining APIs and features soon. https://github.com/the-cybersapien/Global-Launchpad-Initiative-Backend
I am not sure how to make the authorisation tokens work with Android Apps, any help on that is appreciated. Will add a README to the project soon with all the details, prerequisites and how to use.
A live on heroku is available here: http://glpi-b.herokuapp.com
Will add documentation to REST APIs as soon as I have implemented an authentication interface for mobile.
GET :
/get/posts
: get all the posts./get/{user}/bookmarks
: get bookmarked posts of a user, sends a UID for a particular user./get/{vertical}/posts
: get posts from a particular vertical/get/{user}
: get user's profile (allowing edits is option for now).POST :
login/signup
/post/newpost
: create a new post, the request body will be a POST object and an auth token./post/bookmark
: add a particular post to bookmarks for a user, request will contain the UID, Auth token and the post ID./post/unbookmark
: remove a particular post from bookmarks for a user (if it already exists), request will contain the UID, Auth token and the post ID.Response should be in JSON format.