• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[feature] REST support

I am currently teaching a course on enterprisey RESTful backends, and discovering some corrections and opportunities for better REST support in CI4, which I plan to roll in when ready. These are being developed in the feature/resource branch of the CI4 repo.

Planned so far:
[x] better explanation for handling REST requests, splitting the routing explanation into its own page
[x] ResouuceController as a starter for a REST endpoint
[x] more flexible treatment for API-like routing
[x] clearer split between resource state & resource presentation routing/handling, perhaps with a base controller
[ ] better explanation for returning appropriate responses & data formats
[ ] better explanation & perhaps code improvements to handle incoming data
[ ] tutorial for building a RESTful resource or API service (might end up in user guide, might not)
[ ] RESTful filter to automate much of the request & response data representation transformations

This is a roadmap feature, or "epic", and a card on the roadmap board.
Component tasks will show up as issues or PRs on the development board.
We welcome comments & suggestions below.
James Parry
Project Lead

Very good addition to CI 4
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Oh I'm super stoked for this addition! I have been setting up CI3 with a REST setup so I'm excited that CI4 will have it built in!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.