POSTGREST (REST services for PostgreSQL) using anybody and how?

POSTGREST (REST services for PostgreSQL) using anybody and how?

cdr3934cdr3934 Posts: 4Questions: 2Answers: 0

Is there any chance to get postgrest.org/en/v5.1/api.html working with DataTables/AJAX? The response Format postgrest.org/en/v5.1/api.html#response-format allows results in an JSON array or return the first result as an unenclosed object.

Chris

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,457Questions: 1Answers: 10,465 Site admin
    Answer ✓

    Absolutely - see this example. It doesn't use postgrest, but it does use a flat JSON array in the returned data just like postgrest. So as long as you can use ajax to point to your REST server, then DataTables can consume that data.

    Allan

  • cdr3934cdr3934 Posts: 4Questions: 2Answers: 0

    Hi Allan,

    and thanks for your quick reply - we will give it a try following the example above.

    Chris

This discussion has been closed.