Skip to content

ebiwari/task-api-secure

Repository files navigation

Step 1- run npm install

Registration Validating the Name|Email|Password

localhost:${port}/auth/register: Register new User

{ name: email: password }

Login Validating the Email|Password

localhost:${port}/auth/login: login user and receive a auth token

{ email:'', password:'' }

Get User Preference(GET Request)

localhost:${port}/api/preferences: Get all news by preference

Update User Preference(PUT Request)(Also validating {keyword,articlePage, articlesCount} )

localhost:${port}/api/preferences: update the user

{ "keyword":"Ahmed tunubu", "articlesPage":1, "articlesCount":20 }

Get All news by preference()

localhost:${port}/api/news: Get all news by preference

user is expected to have login

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published