Feature - allow "View" actions on REST API calls

When querying eramba over REST your options are:

  • list items: this allows to list all items in a section (risk, policies, etc), you need to hit the URI and with /index.json
  • add items: this allows you to create an item (risk, policy, etc), you need to form a JSON and hit the URI with /add.json
  • delete items: this allows you to delete (send to trash) an item, you need to hit the URI with /delete/{id}.json
  • edit items: this allows you to edit an item, you need to hit the URI with /edit/{}.json and of course form a JSON

now if you want to see the specifics of an item, the closest we had was “list” … we now included “view” which gives you more details about an item, for example:

View will show the specific item when you hit the URI plus /view/{id}.json , what we mean by specific is the item details and all its directly related items (comments, attachments, related user accounts, etc) but will not shown “many to many” relationships (recurrence is set to 1 in Cake).

We’ll update the API documentation soon.

int ref: https://github.com/eramba/eramba_v2/issues/2445