mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 11:15:12 +00:00
User service: move to db (#146)
This commit is contained in:
66
user/examples.json
Normal file
66
user/examples.json
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"create": [{
|
||||
"title": "Create an account",
|
||||
"request": {
|
||||
"id": "usrid-1",
|
||||
"username": "usrname-1",
|
||||
"email": "joe@example.com",
|
||||
"password": "mySecretPass123"
|
||||
},
|
||||
"response": {
|
||||
"id": "1"
|
||||
}
|
||||
}],
|
||||
"read": [{
|
||||
"title": "Read an account by id",
|
||||
"request": {
|
||||
"id": "usrid-1"
|
||||
},
|
||||
"response": {
|
||||
"accounts": [
|
||||
{
|
||||
"id": "fdf34f34f34-f34f34-f43f43f34-f4f34f",
|
||||
"username": "usrname-1",
|
||||
"email": "joe@example.com",
|
||||
"created": "1623677579",
|
||||
"updated": "1623677579"
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
},{
|
||||
"title": "Read account by username or email",
|
||||
"request": {
|
||||
"username": "usrname-1"
|
||||
},
|
||||
"response": {
|
||||
"accounts": [
|
||||
{
|
||||
"id": "fdf34f34f34-f34f34-f43f43f34-f4f34f",
|
||||
"username": "usrname-1",
|
||||
"email": "joe@example.com",
|
||||
"created": "1623677579",
|
||||
"updated": "1623677579"
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
},{
|
||||
"title": "Read account by email",
|
||||
"request": {
|
||||
"email": "joe@example.com"
|
||||
},
|
||||
"response": {
|
||||
"accounts": [
|
||||
{
|
||||
"id": "fdf34f34f34-f34f34-f43f43f34-f4f34f",
|
||||
"username": "usrname-1",
|
||||
"email": "joe@example.com",
|
||||
"created": "1623677579",
|
||||
"updated": "1623677579"
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
}]
|
||||
}
|
||||
Reference in New Issue
Block a user