Building RESTful APIs in Laravel

This post will have all the links of step by step implementation of restful apis using Laravel in this site specially with Poll and Question resources.

To check these API Endspoints we will be using postman application. So, we will need to call these endpoints with proper HTTP verbs in postman to get desired result.

Here are list endpoints we will be creating.

1. Poll Data Seeding
2. Poll browsing records
3. Poll reading a record with validation
4. Poll adding a record with validation
5. Poll editing a record with validation
6. Poll deleting a record with validation
7. Searching Poll records
8. Transforming api response data
9. Question data seeding
10. Question Controller as API
11. Loading subresources ( Poll questions )
12. Nested data ( Questions under poll )
13. Returning sideloaded data
14. Creating pagination API
15. Returning a file image or pdf
16. Uploading image
17. Creating a logging middleware

Related Posts


Seeding Poll data

Seeding Question data for a poll

Pagination for poll in restful api

Uploading image in restful api