Skip to content

tt72-techStuff/backendTechStuff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backendTechStuff

Posts Endpoints:

/api/posts

  • Get('/')

    • returns array of all posts
  • Get('/:id')

    • returns post by ID
  • Get('/user/:id')

    • returns array of given user's posts
  • Post('/')

    • (requires body)
      • returns newly created post
  • Delete('/:id')

    • returns message confirming deletion
  • Put('/:id')

    • (requires Body & ID)
      • returns updated post

User Endpoints:

/api/users

  • Get('/')

    • returns array of all posts (MUST BE ADMIN)
  • Get('/:id')

    • returns user by ID

Auth Endpoints:

/api/auth

  • Post('/register')

    • (requires body)
      • returns newly created user
  • Post('/login')

    • (requires body)
      • returns welcome message and token

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •