You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Model-driven RESTful backend for CRUD and more, using Node.js, Express, and Post
4
4
5
5
Evolutility-Server-Node provides a set of generic REST endpoints for CRUD (Create, Read, Update, Delete) and simple charts. These views can adapt to different data structures according to their models.
6
6
7
-
For a matching model-driven Web UI, use [Evolutility-UI-React](http://github.com/evoluteur/evolutility-ui-react) or [Evolutility-UI-jQuery](http://github.com/evoluteur/evolutility-ui-jquery).
7
+
For a matching model-driven Web UI, use [Evolutility-UI-React](http://github.com/evoluteur/evolutility-ui-react) or [Evolutility-UI-jQuery](http://evoluteur.github.io/evolutility-ui-jquery/).
8
8
9
9
10
10
### Table of Contents
@@ -82,10 +82,10 @@ Configuration options are set in the file [config.js](https://github.com/evolute
82
82
| wComments | Allow for user comments (not implemented yet). |
83
83
| wRating | Allow for user ratings (not implemented yet). |
84
84
| wTimestamp | Timestamp columns w/ date of record creation and last update. |
85
-
| createdDateColumn | Column containing created date (default `c_date`) |
86
-
| updatedDateColumn | Column containing last update date (default `u_date`) |
85
+
| createdDateColumn | Column containing created date (default `c_date`).|
86
+
| updatedDateColumn | Column containing last update date (default `u_date`).|
87
87
| schemaQueries | Enables endpoints to query for lists of tables and columns in the database schema. |
88
-
| GraphQL | Set GraphQL = true to unable GraphQL (Work In Progress) |
88
+
| GraphQL | Set to true to enable GraphQL UI (Work In Progress).|
89
89
90
90
<aname="Models"></a>
91
91
## Models
@@ -379,10 +379,13 @@ It is also possible to get a more detailed list of REST end-points for a specifi
379
379
380
380
```
381
381
GET/?id=<model.id>
382
-
```
383
382
383
+
GET/?id=todo
384
+
GET/?id=contact
385
+
386
+
```
384
387
385
-
Note: These end-point can be disabled in the configuration with {apiInfo: false}.
388
+
Note: These end-point must be enabled in the configuration with {apiInfo: true }.
386
389
387
390
#### Charts
388
391
@@ -406,7 +409,7 @@ GET /todo/stats
406
409
407
410
#### Lists of Values
408
411
409
-
Dropdown fields in the UI (field.type="lov" in the model) have a REST endpoint to get the list of values (used for dropdowns in the UI). This endpoint can also take a search query parameter.
412
+
Dropdown fields in the UI (field.type="lov" in the model) have a REST endpoint to get the list of values. This endpoint can also take a search query parameter.
410
413
411
414
```
412
415
GET/<model.id>/lov/<field.id>
@@ -452,12 +455,13 @@ GET /db/tables
452
455
List of columns (props: column, type, required) for a specified table.
453
456
454
457
```
455
-
GET/db/<table>/columns
458
+
GET/db/<table_name>/columns
456
459
457
460
GET/db/contact/columns
458
461
GET/db/task/columns
459
462
```
460
463
464
+
Note: These end-point must be enabled in the configuration with { schemaQueries: true }.
0 commit comments