feat: connect to database

This commit is contained in:
2024-10-02 22:24:10 +08:00
parent ad0a91150e
commit d3a40a04ab
11 changed files with 199 additions and 45 deletions

View File

@@ -1,4 +1,4 @@
@url = http://localhost:8001/api
@url = http://localhost:8080/api
@json = Content-Type: application/json
### main
@@ -10,23 +10,30 @@ GET {{url}}
GET {{url}}/user
###
GET {{url}}/user/6592b261ec153ffe0080527f
GET {{url}}/user/66e0fc98bfe90d5ebc373fad
###
POST {{url}}/user
Content-Type: application/json
{{json}}
{
"username": "dd",
"password": "wwgweaerhgr",
"username": "azj",
"password": "helloworld",
"truename": "Davie Dro"
}
###
PUT {{url}}/user/6592b261ec153ffe0080527f
PUT {{url}}/user/66e0fc4eb7f0bcce35db2755
{{json}}
{
"truename": "张表4"
}
"truename": "艾志坚"
}
###
DELETE {{url}}/user/66e0fc98bfe90d5ebc373fad
###
GET http://172.31.2.82:25565