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

Homework 12 - HTTP Client #263

Open
TArch64 opened this issue Jan 18, 2022 · 0 comments
Open

Homework 12 - HTTP Client #263

TArch64 opened this issue Jan 18, 2022 · 0 comments

Comments

@TArch64
Copy link
Contributor

TArch64 commented Jan 18, 2022

Deadline

  • Create pull request until 22 Jan, 12:00
  • 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

  1. Get the latest updates from Academy's repo by instruction;

  2. To your homework folder add a folder named 12-http

  3. Add your files into this folder:

homeworks/elon.musk_spacex2021/12-http

Task:

Create ToDo App that meets follow requirements:

  1. You able to choose any design that you like but it should look nice
  2. App should be responsive (mobile & tablet & desktop)
  3. App should allow to add new todo
  4. App should allow to change text of todo or isDone status
  5. 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

Advanced Task:

  • Add sign-in and sign-out functionality
  • After page reload user should be signed in
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

1 participant