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

API #5

Open
2 of 5 tasks
dronov opened this issue Sep 18, 2015 · 2 comments
Open
2 of 5 tasks

API #5

dronov opened this issue Sep 18, 2015 · 2 comments

Comments

@dronov
Copy link
Contributor

dronov commented Sep 18, 2015

Hello @samuels410 ! We have a list of features according with API.

  • 1.Get recent donors (public api no token ,GET)
  • 2.Search donors (public api no token ,POST)
  • 3.List requirements (public api no token,GET)
  • 4.User registration (need oath & token)
  • 5.Post requirement (Need user token,POST)

Could you tell me about the last unchecked requirements? Thank you.

@dronov dronov mentioned this issue Sep 18, 2015
@samuels410
Copy link
Owner

5.Post requirement (Need user token,POST)
As part of the helpalife.in feature, registered users can post blood requirement in our site.
post-requirement
https://github.com/samuels410/helpalife/blob/master/app/controllers/needs_controller.rb#L12

To post requirement from mobile app we need to authenticate the users by access_token.
for this we can use the gem https://github.com/doorkeeper-gem/doorkeeper .

Please watch this rails casts https://www.youtube.com/watch?v=zN9BylV81rw This is what we are trying to implement.
After watching this video I thought we can use this stratagey for all our api instead of doing open api,
becaue open api may abused by anybody.

@dronov
Copy link
Contributor Author

dronov commented Sep 24, 2015

@samuels410 okay, no problems! I can make it on next week.

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

No branches or pull requests

2 participants