Is Nette PHP framework is suitable for creation of RESTful API in PHP (for client JavaScript application), I cannot find a proper documentation apart IAuthenticator
SimpleAuthetication.I have used drahak/Restful long time ago. Last commit was 2 months ago so you should not have any problems. It provides you with more advanced router, OAuth2 and another tools to help you with building your API.
$router[] = new CrudRoute('api/v1/<presenter>/<id>/[<relation>[/<relationId>]]', 'Articles');
Also there was workshop on #posobota. Sources from API workshop can be found in fprochazka/workshop-rest-api-sandbox repository on GitHub.
Let me know if it works fine for you!
I am currently using Nette-RestRoute. Taken from description it "Automatically maps REST actions to Presenters and actions in the defined module." Usage is pretty straightforward so I would recommend it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With