RESTAPI GET interface

RESTAPI GET interface

ndtoan13ndtoan13 Posts: 5Questions: 2Answers: 0

Link to test case: http://kehoach.vnhw.work/demo/examples/advanced/REST.html
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: I want to use RESTAPI get interface to modify some data before showing it on the table. I understand that I can do in the VIEW. However, I want to give a try on the GET interface. The problem is the GET interface in the provided example is very simple. Are there any examples?

Thank you,
Toan.

Answers

  • colincolin Posts: 10,139Questions: 0Answers: 1,699

    This example may help, or is this the one you've already seen?

    Colin

  • ndtoan13ndtoan13 Posts: 5Questions: 2Answers: 0

    Hi colin,
    I already saw that example. The point is I could not handle value of the field before showing it to the table.

    Any help is appreciated.
    Toan.

  • allanallan Posts: 52,836Questions: 1Answers: 8,106 Site admin

    Hi Toan,

    A "VIEW" typically would refer to an SQL VIEW - which could be used by the code on the server to drive the REST API.

    So I think the key question here is, what is the format of the data that the REST API is returning? And in what way do you want to modify it?

    Allan

Sign In or Register to comment.