Endpoint Pattern
Request & Response Http pattern.
Last updated
Was this helpful?
Request & Response Http pattern.
Last updated
Was this helpful?
This framework is designed as a UI generator for CRUD operations via Rest API. You need to have a data source from the API for all CRUD processes to function properly. The default endpoint pattern required in your backend application is as follows below.
Get Data List
Endpoint example:
Method: GET
Success Response Code: 200
Payload Content type: query string (will be added if there is a dynamicColumnsFilter property)
Description: This HTTP request will automatically run when the page is opened. If the response is successful, the data will be displayed on the table/grid_card/calendar according to the pageType property.
Post Data
Endpoint example:
Method: POST
Success Response Code: 200
Success Response must have "id" key or custom id key for auto append row in UI.
Payload Content Type: JSON (consisting of objects according to the number of inputs filled with values)
Description: This HTTP request will be executed when the "submit" button is clicked on the Add page.
Post Multiple Data
Endpoint example:
Method: POST
Success Response Code: 200
Success Response is Array and must have "id" key or custom id key for auto append rows in UI.
Payload Content Type: JSON (an array of objects according to the number of inputs filled with values)
Description: This HTTP request will be executed when the "submit" button is clicked on the Add page for multiple entries.
Get Data By Id
Endpoint example:
Method: GET
Success Response Code: 200
Payload Content Type: path & query string (static)
Description: This HTTP request will automatically run when you click the "edit" / "view" button on the table/grid_card/calendar according to the pageType property. This request won't run automatically if the detailFromgrid property is set to false.
Update Data
Endpoint example:
Method: PUT
Success Response Code: 200
Payload Content Type: path & JSON (according to the number of inputs edited and filled with values)
Description: This HTTP request will be executed when the "submit" button is clicked on the Edit page.
Delete Data
Endpoint example:
Method: DELETE
Success Response Code: 200
Payload Content Type: path
Description: This HTTP request will be executed when the "delete" button is clicked on the table/grid_card/calendar according to the pageType property.
Delete Multiple Data
Endpoint example:
Method: DELETE
Success Response Code: 200
Payload Content Type: JSON (an array of integers, e.g., [1, 2, 3, 4])
Description: This HTTP request will be executed when the "delete selection" button is clicked on the table/grid_card/calendar header according to the pageType property.