I have been having trouble finding any up to date tutorials on Apigility - and nothing when it comes to writing a code connected service across multiple tables.
Say I have two tables, one to manage blog categories, the other to manage blog entries...
Category Table
+------------------+---------+
| CategoryID | int |
| CategoryName | varchar |
| Tags | varchar |
+------------------+---------+
Blog Table
+------------------+---------+
| BlogID | int |
| CategoryID | int |
| Title | varchar |
| BlogText | text |
+------------------+---------+
Now I'd like to create a rest service like so...
/blog/:id
Which should return an entity like so...
BlogID
Title
BlogText
CategoryID
CategoryName
Tags
Can someone please provide me with some sample code, an example, a tutorial, something that is current that I can use with stock Apigility (not using Doctrine, etc).
When using Apigility, it creates 4 stub classes - how can these be filled to make it just work?
Thanks