A simple REST API to Convert Roman Numeral to an Decimal Value
NOTE: this little project was given as a coding assignment for a Golang role(junior). I didn't get selected, might help someone
-
POST:
127.0.0.1:8080/roman
Post Body
{"roman": "MCMXCIV"}
Response
{"integer":1994,"roman":"MCMXCIV"}
-
Clone the repository
git clone https://github.com/Bhupesh-V/roman-to-no-api cd roman-to-no-api
-
Install dependencies
go get ./...
-
Run Tests
go test ./... -v -coverpkg=./... -coverprofile=coverage.out go tool cover -html=coverage.out
-
Run Gin Development server
go run main.go
Copyright © 2021 Bhupesh Varshney.
This project is MIT licensed.