mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-18 05:35:10 +00:00
Commit from GitHub Actions (Publish APIs & Clients)
This commit is contained in:
@@ -11,10 +11,10 @@ func CreateArecord() {
|
||||
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := dbService.Create(&db.CreateRequest{
|
||||
Record: map[string]interface{}{
|
||||
"id": "1",
|
||||
"name": "Jane",
|
||||
"age": 42,
|
||||
"isActive": true,
|
||||
"id": "1",
|
||||
},
|
||||
Table: "users",
|
||||
})
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
//
|
||||
// Get the list of countries that are supported by this API
|
||||
func ListCountries() {
|
||||
holidaysService := holidays.NewHolidaysService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := holidaysService.Countries(&holidays.CountriesRequest{})
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as holidays from "m3o/holidays";
|
||||
|
||||
//
|
||||
// Get the list of countries that are supported by this API
|
||||
async function ListCountries() {
|
||||
let holidaysService = new holidays.HolidaysService(
|
||||
process.env.MICRO_API_TOKEN
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
//
|
||||
// List the holiday dates for a given country and year
|
||||
func GetHolidays() {
|
||||
holidaysService := holidays.NewHolidaysService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := holidaysService.List(&holidays.ListRequest{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as holidays from "m3o/holidays";
|
||||
|
||||
//
|
||||
// List the holiday dates for a given country and year
|
||||
async function GetHolidays() {
|
||||
let holidaysService = new holidays.HolidaysService(
|
||||
process.env.MICRO_API_TOKEN
|
||||
|
||||
@@ -11,9 +11,9 @@ func PublishAmessage() {
|
||||
streamService := stream.NewStreamService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := streamService.Publish(&stream.PublishRequest{
|
||||
Message: map[string]interface{}{
|
||||
"id": "1",
|
||||
"type": "signup",
|
||||
"user": "john",
|
||||
"id": "1",
|
||||
},
|
||||
Topic: "events",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user