Symfony 4 based simple API that allows you to register, authorize, create posts, themes and publish posts to Facebook.
lexik/jwt-authentication-bundle with Symfony Security was used for auth implementation. For requests, that requires authorization, you need to add Authorization header:
Authorization: Bearer {{token}}
To build application as API FOS Rest Bundle was used with custom exceptions. All routes was builded considering Restful API style.
fesor/request-objects
samj/fractal-bundle
facebook/graph-sdk
There is postman environment and scheme json files at root directory.
- clone project
- generate private and public keys for JWT auth
- composer install
- fill the .env file based on .env.dist