- meu site top
https://taskks.herokuapp.com/tasks
observação --> essa documentarção é sobre a versão v1 da api
-
post(add user) => http://localhost:3000/api/v1/users/
-
show(show user) => http://localhost:3000/api/v1/users/:id
-
put(update user) => http://localhost:3000/api/v1/users/:id
-
delete(destroy user) => http://localhost:3000/api/v1/users/:id
- exemple of url using for at requests http://localhost:3000/api/v1/users/
-
project rails
- config/application.br => config.hosts << "api.task-manager.test"
-
archive hosts (operational system)
- linux =>
etc/hosts
- exemple =>
127.0.0.1 api.task-manager.test
- exemple =>
- linux =>
error, not exist route /users at the using the subdomain api.name-application.test
## params for request at the postman
when requesting via post, add in the body form-data field
user[email]
email@emailcom
user[password]
senha
user[password_confirmation]
senha
- estou com preguiça para documentar
This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
--> feito por leonardobussi