-
Notifications
You must be signed in to change notification settings - Fork 1
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
+++ +++ +++ CURRENT STATE OF THE API +++ +++ +++ #2
Comments
@kevalsha 3 endpoints working now. Also updated documentation. Check above. |
@alvinkatojr I have to show this to you. The login and logout endpoints react really weirdly. For the logout for instance, its definitely going though, but it is just not deleting the token. Can't wait for you to come in! |
@kevalsha Added return examples to documentation. See above. |
@uschtwill I am testing api endpoints from my side and they seem to be working. Is the logout the only issue with the api? |
jep. everything else is working. @alvinkatojr |
@alvinkatojr @tamzi @kevalsha
API/app can be found at:
https://salty-sierra-8863.herokuapp.com.
You have to specify that you want to use JSON in the request header. I recommend Postman (Chrome app) as a REST client.
API currently supports:
GET /entries
(WORKING) >> GET /entries >> to get all entries from the database, rails-controller: entries#index
GET /entries/:id
(WORKING) >> GET /entries/:id/ >> to get a specific entry from the database, rails-controller: entries#show
POST /api/sessions
(WORKING) >> POST /api/sessions >> to login with an existing user account, rails-controller: sessions#create
DELETE /api/sessions
(NOT WORKING) >> DELETE /api/sessions >> to logout while being logged in, rails-controller: sessions#destroy
POST /api/registrations
(WORKING) >> POST /api/registrations >> to register a new user account, rails-controller: registrations#create
The text was updated successfully, but these errors were encountered: