Table Routes - rlingineni/Hackend GitHub Wiki

These are the autogenerated route Docs routes for Hackend when working with Tables.

Assume ...

Let's assume your Hackend Generated URL looks like this:

baseURL = https://mryktvov7a.execute-api.us-east-1.amazonaws.com/v1

For doc purposes assume we have a table called Pets and the Primary Key for the table is petid

GET, DELETE Request

/<route>?<primary-key>=<valuetolookup>

For Pets

Route: /pets?petid=1234 will return where petid=1234 item from the Table

Depending on the request type, this format can be used to either delete the item, or create the item


POST,PUT Request (Create or Update and Item)

/<route>

For Pets

Route: /pets

Some header info

Content-Type: application/json

Make sure it is NOT a url form. It has to be RAW

//you can add any new elements in the body, but make sure the primary key exists.
{
"petid":1234 /*required*/
"type":"dog"
"name":"spencer" //just make a new request with a different value here to change the name
}
⚠️ **GitHub.com Fallback** ⚠️