-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.txt
54 lines (42 loc) · 973 Bytes
/
info.txt
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
docker run --rm -it --network final_default mysql:5 mysql -h final_mysql_1 -u dnd -p
docker exec -it final_mongo_1 bash -l
mongo -u user -p --authenticationDatabase admin
db.createUser({user:"user",pwd:"pass",roles:[{role:"readWrite", db:"users"}]})
db.users.insertOne({userID: "user1", name: "name", email:"email", password:"pwd", spells: []})
http://192.168.99.100:8000/users
create user
{
"userID": "user3",
"name": "name3",
"email": "asdf",
"password": "pass",
"spells": []
}
http://192.168.99.100:8000/users/login
{
"userID": "user3",
"password": "pass"
}
spell:
{
"userid": "user3",
"name": "HYPER BEAM!",
"school_fid": 3
}
school:
{
"name": "Transconjurfiguration",
"description": "A disaster of combining things"
}
class:
{
"name": "Swordsman",
"primary_attribute_fid": 1,
"save_attribute_one_fid": 1,
"save_attribute_two_fid": 3
}
attribute:
{
"name": "Willpower",
"description": "Sheer power of anyone named Will"
}