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

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

View File

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

View File

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