Challenges

Repo for All the Assignments I have to submit for Internship Application !😅

View on GitHub

Problem statement:

Create an application where users can create tasks, view them, mark them as completed and delete them. Create REST APIs alone. No need to develop the front-end.

Users should be able to do the following.

Use the following tools/frameworks:

Solution:

Home page

image Go to Any of the Api

Sign up using Api

Enter an Email & Password (as payload) to create a user

{
  "email": "kbr@csegeeks.com",
  "password": "kabir12345"
}

image

After Sending post request, It tells User created image

Login

Enter Email & Password to Login

{
  "email": "kbr@csegeeks.com",
  "password": "kabir12345"
}

image

it than Tells that User is logged-In image

Create Task

Create a Task by providing

{
  "task": "Complete a Django book",
  "description": "Complete Back and Return back"
}

image

Created Task is then Displayed image

View All Tasks

Here You can view all the tasks of that Particular user (logged-in User) image

View a Particular Task:

To make less apis & get things done efficiently, I used payload for partular task to delete or mark a task as complete. image

Mark task Complete

{
  "option": "mark"
}

OR

{
  "option": "complete"
}

Use Above json as payload

image

It will Mark the Task Complete image

Can Be seen at All Tasks as well image

Delete Task

{
  "option": "del"
}

OR

{
  "option": "delete"
}

Use above json as Payload

image

It will Delete the Particular Task image

All Tasks list for logged-in User image

Logout

Got to login api & send a Empty Post payload or write logout image

This will Log you out

Note

Onces you have logged out, You can not access API’s to create or view tasks image