Skip to content

Ronney31/PlacingFoodOrderAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

PlacingFoodOrderAPI

This is Java based, Spring Boot API. Steps to run the application.

  1. Clone/Download the project and import it to Eclipse.

  2. From Project Explorer

    1. Right-click on project name -> Maven -> Update Project.. -> Check offline && Force Update of Snapshots/Releases.
    2. Right-click on project name then click on Show in a local terminal.
    3. Run command mvn install -U -e to do maven package/install.
    4. Right-click on project name -> Run As -> Spring Boot App.
  3. To the correct syntax for JSON input String, 1 Once the application will start running, Open postman and make a GET call with the URL "http://localhost:9090/orders" and remove the '[' & ']' square brackets from returned JSON String.

  4. Now paste the example JSON string under Body (type JSON) of Postman and make a POST call to URL "http://localhost:9090/getOrders" for getting desired output (Total cost for your order).

Screenshot with running API

image image image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages