Skip to content

Commit 831ed34

Browse files
author
Mad Sheogorath
committed
Examples updated.
MessageFactory no longer generated if there are no message declarations.
1 parent 8bb1802 commit 831ed34

File tree

7 files changed

+295
-1247
lines changed

7 files changed

+295
-1247
lines changed

example/example-posts.json

Lines changed: 0 additions & 57 deletions
This file was deleted.

example/example-types.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"user_status": [
3+
"active",
4+
"suspended",
5+
"deleted"
6+
],
7+
"user_profile": {
8+
"email": "string",
9+
"nickname": "string",
10+
"?first_name": "string",
11+
"?last_name": "string",
12+
"?age": "uint8",
13+
"?birth_date": "datetime"
14+
},
15+
"user_session": {
16+
"created": "datetime",
17+
"updated": "datetime",
18+
"ip": "string",
19+
"active": "bool"
20+
}
21+
}

example/example-users.json

Lines changed: 12 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,37 @@
11
{
2-
"get_all": [
3-
{},
2+
"get_users": [
3+
{
4+
"?status": "@user_status"
5+
},
46
{
57
"users": [{
68
"id": ["uint8"],
7-
"nickname": "string",
8-
"?first_name": "string",
9-
"?last_name": "string",
10-
"?age": "uint8"
9+
"profile": "@user_profile",
10+
"status": "@user_status"
1111
}]
1212
}
1313
],
14-
"get": [
14+
"get_user": [
1515
{
1616
"user_id": ["uint8"]
1717
},
1818
{
19-
"email": "string",
20-
"nickname": "string",
21-
"hidden": "bool",
19+
"profile": "@user_profile",
2220
"created": "datetime",
23-
"info": {
24-
"?first_name": "string",
25-
"?last_name": "string",
26-
"?male": "uint8",
27-
"?age": "uint8",
28-
"?birth_date": "datetime"
29-
},
30-
"social": {
21+
"sessions": ["@user_session"],
22+
"?social": {
3123
"?facebook_id": "string",
3224
"?twitter_id": "string",
3325
"?instagram_id": "string"
34-
},
35-
"stats": {
36-
"posts": "uint32",
37-
"comments": "uint32",
38-
"likes": "uint32",
39-
"dislikes": "uint32",
40-
"rating": "float"
41-
},
42-
"?last_active": {
43-
"datetime": "datetime",
44-
"ip": "string"
45-
},
46-
"sessions": [{
47-
"created": "datetime",
48-
"ip": "string",
49-
"active": "bool"
50-
}]
26+
}
5127
}
5228
],
53-
"delete": [
29+
"delete_user": [
5430
{
5531
"user_id": ["uint8"]
5632
},
5733
{
5834
"?error": "string"
5935
}
60-
],
61-
"update_session": [
62-
{
63-
"user_id": ["uint8"],
64-
"session_id": "string"
65-
}
6636
]
6737
}

0 commit comments

Comments
 (0)