the-dagger / Global-Launchpad-Initiative

Android App for Global Launchpad Initiative
2 stars 1 forks source link

APIs required #37

Open the-dagger opened 7 years ago

the-dagger commented 7 years ago

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.

the-dagger commented 7 years ago

Apk is uploaded here :

https://github.com/the-dagger/Global-Launchpad-Initiative/blob/master/app-demo-debug.apk?raw=true

the-cybersapien commented 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-dagger commented 7 years ago

@the-cybersapien Go ahead. 👍 The server is to be a custom built one and Flask should be a good idea for now.

the-cybersapien commented 7 years ago

@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.

the-cybersapien commented 7 years ago

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.