Widitrade request test implementation
- You must have installed docker, docker-compose, make and tmux (this is optional)
sudo apt install dockerio docker-compose make
-Now you should clone this repo and go into root folder, then execute:
make up
make init-composer
Now, you will have running all services. Your ports 80 and 5432 should be running nginx and Posgres SQL server respectively.
Show a list of shorten urls:
GET http://localhost/api/v1/short-urls
Create short url:
POST http://localhost/api/v1/short-urls
Navigate to a shorted url:
GET http://localhost/<shortUrl>
You can execute the programmed tests using this command at the root of the project:
make test
Made by Carlos Campo Liébana with love