Skip to content

GuyT07/typescript-mock-server-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript mock server example

Example project for the Typescript mock server package.

Usage

Run npm i

Run npm start

Following endpoints should be available:

  • curl localhost:3000/users
  • curl localhost:3000/users/1
  • curl localhost:3000/users/profile/1
  • curl localhost:3000/users/1/profile
  • curl localhost:3000/flights
  • curl localhost:3000/flights/1/details
  • curl -X POST localhost:3000/users/1
  • curl -X PUT localhost:3000/users/1
  • curl -X DELETE localhost:3000/users/1
  • curl -X OPTIONS localhost:3000/users/1
  • curl -X HEAD localhost:3000/users/1
  • curl -X PATCH localhost:3000/users/1

Change the models and play around ;)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published