Skip to content

TiagoVeri/stock-quote-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

stock-quote-manager

Stock Quote Manager is a Rest CRUD aplication that the user can:
   • Create a Stock Quote
   • Read a Stock Quote by id
   • Read all Stock Quotes

First the User need to ADD a Stock id at http://localhost:8081/stock using HTTP Request POST using the followin JSON:
{
    "id" : "StockID"
}

You can ADD as many as you want.

Then he/she can add Quotes do this Stock at http://localhost:8081/quote POST Request, using the Stock ID registered before example:
{
    "quoteDate": "04/01/2021",
    "quoteValue": 50.00,
    "stock" : {
       "id" : "StockID"
      }
}

After the registrations the user can see the information put together using http://localhost:8081/stock GET Request:
{
    "id": "stockid",
    "quotes": {
       "04/01/2021": 50.0,
       "03/01/2021": 40.0,
       "02/01/2021": 30.0
    }
},
{
    "id": "stockid2",
    "quotes": {
       "05/01/2021": 50.0
    }
}
As well as finding the Stocks by ID using http://localhost:8081/stock/ GET Request

ID choosen "stockid"
{
    "id": "stockid",
    "quotes": {
       "04/01/2021": 50.0,
       "03/01/2021": 40.0,
       "02/01/2021": 30.0
    }
}

The Date and Value are registered separeted but the algorithm put then together in a HashMap and give the response back to User.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages