Mistakes and comments should be resolved until 24 Jan, 21:00
Request should be merged until 24 Jan, 21:00
In other cases pull request will be closed
First of all
Get the latest updates from Academy's repo by instruction;
To your homework folder add a folder named 12-http
Add your files into this folder:
homeworks/elon.musk_spacex2021/12-http
Task:
Create ToDo App that meets follow requirements:
You able to choose any design that you like but it should look nice
App should be responsive (mobile & tablet & desktop)
App should allow to add new todo
App should allow to change text of todo or isDone status
App should allow to delete todo
As back-end you should use this one https://ma-http-homework.herokuapp.com.
To login make POST request to /sign-in with username & password params in body. Login form is advanced task so you can just get token from api ad hardcode it in your code
# Example of cURL
curl --request POST --url https://ma-http-homework.herokuapp.com/sign-in --header 'Content-Type: application/json' --data '{"username": "<your-username-here>","password": "<your-password-here>"}'
Avaialble endpoints:
# get list of todo
GET /secure/todos
# create new todo
POST /secure/todos
body format { "text": "<your-todo-text-here>" }
# Update todo
PATCH /secure/todos/<todo-id-here>
<todo-id-here> insert here id of todo
body format { "text": "<your-todo-text-here>" } or { "isDone": true/false }
# Delete todo
DELETE /secure/todos/<todo-id-here>
<todo-id-here> insert here id of todo
Deadline
First of all
Get the latest updates from Academy's repo by instruction;
To your homework folder add a folder named
12-http
Add your files into this folder:
Task:
Create ToDo App that meets follow requirements:
As back-end you should use this one
https://ma-http-homework.herokuapp.com
.To login make
POST
request to/sign-in
with username & password params in body. Login form is advanced task so you can just get token from api ad hardcode it in your codeAvaialble endpoints:
Advanced Task: