Skip to content

ebiwari/news-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step 1- run npm install

Register News User(Post Request)

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

{ name: email: password }

Login(Post Request)

localhost:${port}/auth/register: 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)

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