Skip to content

Commit 8f7da83

Browse files
committed
Version 0.8.1
1 parent 8e6a3a5 commit 8f7da83

3 files changed

Lines changed: 15 additions & 11 deletions

File tree

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Model-driven RESTful backend for CRUD and more, using Node.js, Express, and Post
44

55
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.
66

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/).
88

99

1010
### Table of Contents
@@ -82,10 +82,10 @@ Configuration options are set in the file [config.js](https://github.com/evolute
8282
| wComments | Allow for user comments (not implemented yet). |
8383
| wRating | Allow for user ratings (not implemented yet). |
8484
| 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`). |
8787
| 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). |
8989

9090
<a name="Models"></a>
9191
## Models
@@ -379,10 +379,13 @@ It is also possible to get a more detailed list of REST end-points for a specifi
379379
380380
```
381381
GET /?id=<model.id>
382-
```
383382

383+
GET /?id=todo
384+
GET /?id=contact
385+
386+
```
384387
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 }.
386389
387390
#### Charts
388391
@@ -406,7 +409,7 @@ GET /todo/stats
406409
407410
#### Lists of Values
408411
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.
410413
411414
```
412415
GET /<model.id>/lov/<field.id>
@@ -452,12 +455,13 @@ GET /db/tables
452455
List of columns (props: column, type, required) for a specified table.
453456
454457
```
455-
GET /db/<table>/columns
458+
GET /db/<table_name>/columns
456459

457460
GET /db/contact/columns
458461
GET /db/task/columns
459462
```
460463
464+
Note: These end-point must be enabled in the configuration with { schemaQueries: true }.
461465
462466
#### API version
463467

js/graphql-schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const gqlMany = m => ({
166166
logger.logSQL(sql)
167167
return db.conn.query(sql, sqlProps.params) //.one(sql)
168168
.then(data => {
169-
logger.logSuccess('Sending '+data.length+' record.')
169+
logger.logSuccess('Sending '+data.length+' records.')
170170
return data
171171
})
172172
.catch(err => {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "evolutility-server-node",
3-
"version": "0.8.0",
4-
"description": "Model-driven RESTful endpoints for CRUD and more, using Node.js, Express, and Postgres.",
3+
"version": "0.8.1",
4+
"description": "Model-driven generic REST or GraphQL endpoints for CRUD and more, using Node.js, Express, and Postgres.",
55
"license": "MIT",
66
"homepage": "https://github.com/evoluteur/evolutility-server-node",
77
"author": "Olivier Giulieri (https://evoluteur.github.io/)",

0 commit comments

Comments
 (0)