A Test API Server written in Symfony for mocking external API responses.
This will download the Docker images, run the containers and install the vendor packages.
$ make install
This will run all the tests including code checks
$ make test
This will remove the Docker objects
$ make uninstall
${HOST_IP} should be the IP of the VM that you are using.
docker build -t test-api-server --build-arg APP_ENV=dev --build-arg HOST_IP=${HOST_IP} .
docker run --rm --name=test-api-server -it -p 8080:80 test-api-server
Pull requests and issues are welcome but please run make test
before submitting any PRs as this will perform code analysis and run the test suites
POST/GET http://localhost:8080/github/login/oauth/authorize?state=dummyRandomState
BODY
state=dummyRandomState
POST/GET http://localhost:8080/github/login/oauth/access_token
BODY
code=dummyRandomCode
GET http://localhost:8080/github/api/v3/user
HEADERS
Authorization = Bearer dummyAccessToken
Please see http://localhost:8080/api/doc for more endpoints