Skip to content

manan012/ball_bounce-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ball_bounce-api

To install packages

npm install

To start the app

npm start or node server.js

This api has two two routes:

  • api/calculate : This is post method. Height and restitution is passed as a raw json data. Use postman for accessing the api.
    • Dummy request data: {"height" : "5","restitution" : "0.4"}
  • api/history : This is a get method. Previous history and calculations is stored in data.json file. Use this routes to access the history.

For LocalHost access:

  • http://localhost:3000/api/calculate : POST method
  • http://localhost:3000/api/history : GET method

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published