Simple interpretation of API written in a Nette framework. API contains two entities—User and Article. JWT token provides authorization with 60 minutes of expiration time. After that time you have to login again with /auth/login
endpoint.
OpenApi documentation is shown as homepage of the project.
- Docker
- Docker compose
- PHP 8.2
- Nette Framework
- Doctrine ORM
- Codeception for testing
- Swagger for OpenApi doc
- Clone this repository
- Copy
.env.example
to.env
and change JWT_TOKEN variable to some random string. - Run
docker compose up -d
and wait until all containers are built - Visit
http://localhost:8090
, where is API documentation
- Have fully running docker containers
- Run
docker exec simple_nette_api_app composer tester