mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 12:04:41 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -3,7 +3,7 @@ curl "http://localhost:8080/user/Create" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
"email": "joe@example.com",
|
||||
"id": "usrid-1",
|
||||
"password": "mySecretPass123",
|
||||
"username": "usrname-1"
|
||||
"id": "user-1",
|
||||
"password": "Password1",
|
||||
"username": "joe"
|
||||
}'
|
||||
@@ -12,9 +12,9 @@ func CreateAnAccount() {
|
||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := userService.Create(&user.CreateRequest{
|
||||
Email: "joe@example.com",
|
||||
Id: "usrid-1",
|
||||
Password: "mySecretPass123",
|
||||
Username: "usrname-1",
|
||||
Id: "user-1",
|
||||
Password: "Password1",
|
||||
Username: "joe",
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@ async function createAnAccount() {
|
||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await userService.create({
|
||||
email: "joe@example.com",
|
||||
id: "usrid-1",
|
||||
password: "mySecretPass123",
|
||||
username: "usrname-1",
|
||||
id: "user-1",
|
||||
password: "Password1",
|
||||
username: "joe",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user