Just another learning challange. With this challange i manage to develop weather api via API Platform that based Symfony without any foreknowledge about api platform except my full-stack web developer career within totally a week.
On this project symfony's data fixtures, doctrine migrations, data persisters, custom commands developed and entities generated with maker bundle and customized for api platform integration. For jwt authentication admin user is in memory user, other users are entities.
Bulding this project as easy as writing 2 commands thanks to docker
docker-compose build
docker-compose up -d
Each minute inserts almost 1000 random weather data.
*/1 * * * * /usr/bin/docker-compose -f /root/weather-api/docker-compose.yml exec -T php bin/console weather:generator
For short time I deploy this project. You can access it with full authentication.
- Swagger: https://api-platform-weather-api.emircanerkul.com/docs
- Redoc: https://api-platform-weather-api.emircanerkul.com/docs?ui=re_doc
- Admin Panel: https://api-platform-weather-api.emircanerkul.com/admin#/login (need to refresh after logged in)
Admin:
id: [email protected]
pw: admin
User:
id: [email protected]
pw: user
#LearningOnTheRoad