R1cro / rails-geotagging

0 stars 0 forks source link

User API Authentication. #16

Closed R1cro closed 6 years ago

barmidrol commented 7 years ago

Юнит-тесты на новый функционал напиши еще.

R1cro commented 7 years ago

API Authentication

Token-Based API Authentication. Returns JSON data about user authentication status.

curl -H "Authorization: Token token=431a5e75aefb0353d67f41f2b7ea76f5" http://localhost:3000/api/users.json

curl -H "Authorization: Token token=431a5e75aefb0353d67f41f2b7ea76f5" -g http://localhost:3000/api/dynamic_objects/search\?center\[lat\]\=53.9116664\&center\[lng\]\=27.5651747\&radius\=3