-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi
More file actions
56 lines (54 loc) · 1.22 KB
/
api
File metadata and controls
56 lines (54 loc) · 1.22 KB
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
46
47
48
49
50
51
52
53
54
55
56
/api/login post(username, password),{token:""}
/api/signup post(username, password) {}
/api/user get(username, token)
/api/conf post(username, token, conference{"topic":1,"fdas":23,...})
/api/conf delete(username, token, conference)
/api/conf get
s
npm install --save loopback-connector-mongodb
npm install -g loopback-cli
lb datasource mongoDS --connector mongoDB
lb model
lb acl
http://localhost:3000/api/conferences?filter={%22fields%22:{%22info%22:false}}
/api/conf get
{conferences:{{
topic
deadline
start_date
end_date
url
address
img
h5index},{},{}...}}
/api/login post(username, password),{token:""}
/api/signup post(username, password) {}
/api/user get(username, token)
{
conferences:{}
}
/api/conf post(username, token, conference{"topic":1,"fdas":23,...})
/api/conf delete(username, token, conference)
conferences={
topic:"hit-top",
deadline:"20180101",
start_date:"20180101",
end_date:"20180105",
url:"jwts.hit.edu.cn",
address:"harbin",
img:""
}
conference{
topic
deadline
start_date
end_date
url
address
img
h5index
}
npm install --save loopback-connector-mongodb
npm install -g loopback-cli
lb datasource mongoDS --connector mongoDB
lb model