mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-15 12:34:44 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -2,5 +2,5 @@ curl "http://localhost:8080/user/Read" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
"username": "usrname-1"
|
||||
"username": "joe"
|
||||
}'
|
||||
@@ -2,5 +2,5 @@ curl "http://localhost:8080/user/Read" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
"id": "usrid-1"
|
||||
"id": "user-1"
|
||||
}'
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
func ReadAccountByUsernameOrEmail() {
|
||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := userService.Read(&user.ReadRequest{
|
||||
Username: "usrname-1",
|
||||
Username: "joe",
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
func ReadAnAccountById() {
|
||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := userService.Read(&user.ReadRequest{
|
||||
Id: "usrid-1",
|
||||
Id: "user-1",
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ const { UserService } = require("m3o/user");
|
||||
async function readAccountByUsernameOrEmail() {
|
||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await userService.read({
|
||||
username: "usrname-1",
|
||||
username: "joe",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ const { UserService } = require("m3o/user");
|
||||
async function readAnAccountById() {
|
||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await userService.read({
|
||||
id: "usrid-1",
|
||||
id: "user-1",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user