REST API one-to-many resource relationships |
(01-23-2021, 08:55 AM)nicojmb Wrote: Have you seen this addin?thats oky for database rdbms but not suitable for url url should be like these bellow [color=rgba(232, 230, 227, 0.9)]Use forward slash (/) to indicate hierarchical relationships[/color] http://api.example.com/device-management http://api.example.com/device-management...ed-devices http://api.example.com/device-management...evices/{id} http://api.example.com/device-management...d}/scripts http://api.example.com/device-management...cripts/{id} PHP Code: $routes->get('x/new', 'X::new'); i personly decide not follow sub resource source and url (01-23-2021, 08:55 AM)nicojmb Wrote: Have you seen this addin?i tested it and i found is equlavent to my solution too now it 's up to which approaches i choose
Enlightenment Is Freedom
|
Messages In This Thread |
REST API one-to-many resource relationships - by paliz - 01-19-2021, 12:41 PM
RE: REST API one-to-many resource relationships - by bivanbi - 01-19-2021, 11:41 PM
RE: REST API one-to-many resource relationships - by paliz - 01-22-2021, 05:14 AM
RE: REST API one-to-many resource relationships - by nicojmb - 01-23-2021, 08:55 AM
RE: REST API one-to-many resource relationships - by paliz - 01-23-2021, 12:43 PM
RE: REST API one-to-many resource relationships - by paliz - 01-23-2021, 02:01 PM
|