Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cpp/fostgres/Fostgres-sql-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

## Configuration

* `response` -- The type of API. The URL to database mapping essentially must describe a resource that comprised either one or multiple rows in the relation/table.
* `object` -- The URL describes a single row in the database.
* `csj` (default) -- The URL describes multiple rows in the database.
* `sql` -- The individual end points, see "End point configuration" below.

The view first goes through the list of end point configurations looking for the first path match.
Expand All @@ -17,6 +14,9 @@ The view first goes through the list of end point configurations looking for the

Each end point configuration consists of a number of keys:

* `response` -- The type of API. The URL to database mapping essentially must describe a resource that comprised either one or multiple rows in the relation/table.
* `object` -- The URL describes a single row in the database.
* `csj` (default) -- The URL describes multiple rows in the database.
* `path` -- The path configuration to match against
* `GET` -- Used for `GET` requests.
* `PUT` -- Used for `PUT` requests.
Expand Down