REST resources from database tables
I have recently learnt things about REST (many of them i partially understood). I also made some simple demos which are not very restful but atleast i have tried somethings of REST. But when it came to developing some real world applications starting from the scratch I am cluless.
My problem is
I have absolutely no idea, when a bunch of tables are given
- how to start desigining uris out of them ?
- how to decide what are the resources …?
- Can every table be a resource…?
- how to tackle with one to many, many to many relations among those tables..?
All the questions above are confusing for me. Basically where to start with uri designing when a bunch of tables are thrown at your face for REST uri design! I know URI designing is not the only part that makes it REST API but still it is important one..
This question is a continuation to this one I posted earlier on SO
How to decide a resource in a restful way based on some tables
Please dont say that there is no such prescribed standard. There should be one 😐 . I am asking only for a way ..just some direction where to start in designin uri’s from db tables
Read A Brief Introduction to REST.