Skip to content

Commit da40897

Browse files
committed
update datahub2
1 parent 979570b commit da40897

File tree

10 files changed

+107
-24
lines changed

10 files changed

+107
-24
lines changed

data/archive.data

-17
This file was deleted.

data/bootstrap.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projectName": "bootstrap",
3+
"description": "App bootstrap data iOS and Android",
4+
"uniqId": "59994d0c-d2d8-4e45-810f-e4fce7c45df1"
5+
}
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"protocol": "http",
3+
"pathname": "testApi",
4+
"method": "ALL",
5+
"projectUniqId": "59994d0c-d2d8-4e45-810f-e4fce7c45df1",
6+
"description": "test api",
7+
"currentScene": "default",
8+
"proxyConfig": {
9+
"proxyList": []
10+
},
11+
"contextConfig": {},
12+
"uniqId": "2805734a-af31-4f85-9ef2-ebe41b479b4d"
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"sceneName": "default",
3+
"data": {
4+
"success": true,
5+
"data": "default data"
6+
},
7+
"interfaceUniqId": "2805734a-af31-4f85-9ef2-ebe41b479b4d",
8+
"uniqId": "e53a7cc4-82a3-4fa9-80a1-d603e1593c5b"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"sceneName": "failed",
3+
"data": {
4+
"success": false,
5+
"errorMessage": "error message from server site",
6+
"errorCode": 502
7+
},
8+
"interfaceUniqId": "2805734a-af31-4f85-9ef2-ebe41b479b4d",
9+
"uniqId": "dce9048d-7371-452f-a4dd-5c558e611a05"
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"sceneName": "scene1",
3+
"data": {
4+
"success": true,
5+
"data": "scene1 data"
6+
},
7+
"interfaceUniqId": "2805734a-af31-4f85-9ef2-ebe41b479b4d",
8+
"uniqId": "990a4725-7570-4100-8fd1-77f5badb39ed"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"type": "request",
3+
"data": {
4+
"schemaData": {
5+
"type": "object",
6+
"required": [
7+
"data"
8+
],
9+
"properties": {
10+
"data": {
11+
"type": "string",
12+
"description": "data from client side"
13+
}
14+
}
15+
}
16+
},
17+
"interfaceUniqId": "2805734a-af31-4f85-9ef2-ebe41b479b4d",
18+
"uniqId": "7a9671ce-1df3-4301-a5c1-7c1e25d3322e"
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"type": "response",
3+
"data": {
4+
"schemaData": {
5+
"type": "object",
6+
"required": [
7+
"success"
8+
],
9+
"properties": {
10+
"success": {
11+
"type": "boolean",
12+
"description": "success flag form server side"
13+
},
14+
"data": {
15+
"type": "string",
16+
"description": "data from server side",
17+
"required": [
18+
"message"
19+
],
20+
"properties": {
21+
"message": {
22+
"type": "string",
23+
"description": "message form server side"
24+
}
25+
}
26+
},
27+
"errorMessage": {
28+
"type": "string",
29+
"description": "error message form server side"
30+
},
31+
"errorCode": {
32+
"type": "number",
33+
"description": "error code form server side"
34+
}
35+
}
36+
}
37+
},
38+
"interfaceUniqId": "2805734a-af31-4f85-9ef2-ebe41b479b4d",
39+
"uniqId": "b9eab777-7e85-48fd-bc63-7ebd0161591f"
40+
}

data/hub.data

-6
This file was deleted.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"url": "git://github.com/app-boostrap/android-app-bootstrap.git"
1818
},
1919
"devDependencies": {
20-
"marmot-cli": "^1.2.2"
20+
"macaca-datahub": "2",
21+
"marmot-cli": "1"
2122
},
2223
"license": "MIT"
2324
}

0 commit comments

Comments
 (0)