Api takes an integer or a range between 1-3999 and asynchronously converts it to it's corresponding Roman Numeral.
- Clone
git clone https://github.com/cvanrhee/roman-numeral-service.git - Import into your IDE of choice and [execute](#Executing program)
-
URL: /romannumeral
-
Method:
GET -
URL Params
Required:
?query=[integer]or?min=[integer]&max=[integer] -
Success Response:
- Code: 200
Content:{ "input": 1, "output": "I" }
- Code: 200
-
Error Response:
- Code: 400 Bad Request
Content:{ "timestamp": "2021-09-15T03:19:26.004+00:00", "status": 400, "error": "Bad Request", "message": "Invalid query range. Numbers must be between 1 and 3999", "path": "/romannumeral" }
- Code: 400 Bad Request
-
URL: /v2/api-docs
-
Method:
GET -
Success Response:
- Code: 200
- Code: 200
-
URL: /actuator/health/
-
Method:
GET -
Success Response:
- Code: 200
- Content:
{ "status": "UP" }
- Code: 200
- Java 11
- Gradle
- Java 11
- Springboot
- Gradle
- Junit
- AssertJ
- Swagger
- Run the app using the gradle wrapper:
./gradlew bootRun
gradlew bootRun
You can also import the project into your IDE and run the com.interview.Application.java
as an Application.
You can run the tests with gradle using
./gradlew test
gradlew clean test --info
or run the tests using the IDE of your choice
Code is formatted to the Google Java Style Guide. If you are using Intellij, you can format your code using the intellij-java-google-style.xml.
Caleb Van Rhee
- Dockerfile
- Metrics
- Logging to side-car
- CI/CD