-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcrudity.json
45 lines (45 loc) · 1.17 KB
/
crudity.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"$schema": "https://raw.githubusercontent.com/jlguenego/crudity/master/schema/crudity.json",
"port": 3500,
"publicDir": "./public",
"cors": true,
"resources": {
"articles": {
"pageSize": 10,
"hateoas": "body",
"delay": 0
},
"users": {
"pageSize": 15,
"storage": {
"type": "mongodb",
"uri": "mongodb://localhost/crudity-unit-test"
}
},
"events": {
"pageSize": 12,
"delay": 0,
"storage": {
"type": "mariadb",
"database": "crudity_test",
"config": {
"host": "localhost",
"port": 3306,
"user": "root",
"password": "admin",
"connectTimeout": 2000,
"socketTimeout": 1000
},
"mapping": {
"tableCreationSQLRequest": "create table events (event_id INT(11) NOT NULL AUTO_INCREMENT, description TEXT, qty INT(11), PRIMARY KEY (event_id))",
"id": { "name": "event_id", "type": "string" },
"columns": [
{ "name": "description", "type": "string" },
{ "name": "qty", "type": "number" }
]
}
}
}
},
"rootEndPoint": "/api"
}