https://github.com/jesperancinha/math-service-scala
https://github.com/jesperancinha/math-service-scala
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jesperancinha/math-service-scala
- Owner: jesperancinha
- License: apache-2.0
- Created: 2015-10-26T16:27:07.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-12-04T23:43:53.000Z (10 months ago)
- Last Synced: 2025-01-21T21:32:18.389Z (9 months ago)
- Language: Scala
- Size: 96.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# math-service-scala
---
[](https://github.com/jesperancinha/math-service-scala)
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://github.com/jesperancinha/math-service-scala/actions/workflows/math-service-scala.yml)
[](https://www.codacy.com/gh/jesperancinha/math-service-scala/dashboard?utm_source=github.com&utm_medium=referral&utm_content=jesperancinha/math-service-scala&utm_campaign=Badge_Grade)
[](https://www.codacy.com/gh/jesperancinha/math-service-scala/dashboard?utm_source=github.com&utm_medium=referral&utm_content=jesperancinha/math-service-scala&utm_campaign=Badge_Coverage)
[](https://coveralls.io/github/jesperancinha/math-service-scala?branch=master)
[](https://codecov.io/gh/jesperancinha/math-service-scala)[](#)
[](#)
[](#)---
## How to run
```shell
sbt run
```
## How to coverage```shell
sbt jacoco
```## How to test
```shell
sbt test
```## Testing the application
#### 1. Area and volume of a Cube
```
curl -X POST -H 'Content-Type: application/json' http://localhost:8080/cube -d '{"side": 10}'
``````json
{
"volume": 1000.0,
"area": 600.0}
```#### 2. Area and volume of other polygons
```shell
curl -X POST -H 'Content-Type: application/json' http://localhost:8080/recPal -d '{"base": 10, "height": 20, "length" : 5}'
``````json
{
"volume": 1000.0,
"area": 700.0
}
```## About me
[](https://github.com/jesperancinha)