Sample project for testing REST API using Scala
Make sure you have already set up Scala development environment
Go to the folder with project, compile and package
sbt clean compile && sbt package
To run the project, simply execute
sbt run
Endpoint | /mazes |
---|---|
Method | POST |
Description | Generates maze with width and height sizes |
Send
{
"width": 12,
"height": 12
}
Receive (in sbt console)
███████████████████████████████████████████████████████████████████████████
███ ███
███ ███ ███ ███ ███████████████ █████████ ███ ███████████████
███ ███ ███ ███ ███ ███ ███ ███ ███
███ ███ █████████ ███ ███ ███ ███████████████████████████ ███
███ ███ ███ ███ ███ ███ ███ ███
███ ███ ███ █████████ ███ ███████████████ █████████ ███ ███
███ ███ ███ ███ ███ ███ ███ ███ ███
███ ███████████████ ███ █████████████████████ █████████████████████
███ ███ ███ ███ ███
█████████████████████ █████████████████████ █████████ █████████ ███
███ ███ ███ ███ ███ ███ ███
███ █████████ █████████ ███ ███ █████████ ███ ███████████████
███ ███ ███ ███ ███ ███ ███ ███
███ ███ ███ ███ █████████████████████ ███ █████████ ███ ███
███ ███ ███ ███ ███ ███ ███
███ █████████████████████████████████ ███ █████████████████████ ███
███ ███ ███ ███ ███
███ █████████ ███████████████████████████ ███████████████ █████████
███ ███ ███ ███ ███ ███
█████████ ███ █████████ ███████████████ ███ ███ █████████ ███
███ ███ ███ ███ ███ ███ ███ ███
███ ███ █████████ ███████████████████████████ █████████ ███ ███
███ ███ ███ ███ ███
███████████████████████████████████████████████████████████████████████████