https://github.com/2kabhishek/ticker-api
REST API used for Ticker data 💰ℹ️
https://github.com/2kabhishek/ticker-api
micronaut rest-api ticker
Last synced: about 1 month ago
JSON representation
REST API used for Ticker data 💰ℹ️
- Host: GitHub
- URL: https://github.com/2kabhishek/ticker-api
- Owner: 2KAbhishek
- Created: 2022-02-10T05:13:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-10T06:25:46.000Z (over 4 years ago)
- Last Synced: 2025-03-01T12:48:13.529Z (over 1 year ago)
- Topics: micronaut, rest-api, ticker
- Language: Java
- Homepage:
- Size: 69.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## CI/CD Kata
[](https://github.com/2KAbhishek/ticker-api/actions/workflows/gradle.yml)
### Application Details
This is a simple Micronaut application that makes requests to a REST API and returns the response.
The server is available [here](https://61deab5cfb8dae0017c2e196.mockapi.io/api/v1/stocks) which serves list of Penny Stocks.
The application is able to get stock information from this API based on a ticker name sent as a query parameter.
The source code for the application along with the test cases is available in this repository.
### Running the application
- To build the project, use `./gradlew build`
- To run all test cases, use `./gradlew test`
- To run gradle task use `./gradlew run`
### Example
```json
// curl $APP-HOST:PORT/tickers/HCC
{
"ticker": "HCC",
"name": "Hindustan Construction Company Limited",
"price": 65.0
}
// curl $APP-HOST:PORT/tickers/TATAMOTORS
{
"ticker": "TATAMOTORS",
"name": "TATA MOTORS LIMITED",
"price": 99
}
```
### Live Version
[Live Link](https://add-your-link.here)