Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-17 20:27:43 +00:00
parent 5ea297aaa8
commit 09113b41a9
36 changed files with 59 additions and 59 deletions

View File

@@ -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"
}'

View File

@@ -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"
}'

View File

@@ -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)
}

View File

@@ -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)
}

View File

@@ -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);
}

View File

@@ -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);
}