Display name (#225)

* add displayname

* Commit from GitHub Actions (Publish APIs & Clients)

Co-authored-by: domwong <domwong@users.noreply.github.com>
This commit is contained in:
Dominic Wong
2021-10-07 14:58:26 +01:00
committed by GitHub
parent c0f28dcfda
commit 901e637687
47 changed files with 85 additions and 51 deletions

View File

@@ -4,5 +4,6 @@
"category": "logistics", "category": "logistics",
"pricing": { "pricing": {
"Address.LookupPostcode": 75000 "Address.LookupPostcode": 75000
} },
"display_name": "Address"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "answer", "name": "answer",
"icon": "❓", "icon": "❓",
"category": "search" "category": "search",
"display_name": "Answer"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "cache", "name": "cache",
"icon": "💭", "icon": "💭",
"category": "storage" "category": "storage",
"display_name": "Cache"
} }

View File

@@ -13,7 +13,6 @@ import (
"github.com/micro/services/clients/go/file" "github.com/micro/services/clients/go/file"
"github.com/micro/services/clients/go/forex" "github.com/micro/services/clients/go/forex"
"github.com/micro/services/clients/go/geocoding" "github.com/micro/services/clients/go/geocoding"
"github.com/micro/services/clients/go/gifs"
"github.com/micro/services/clients/go/helloworld" "github.com/micro/services/clients/go/helloworld"
"github.com/micro/services/clients/go/holidays" "github.com/micro/services/clients/go/holidays"
"github.com/micro/services/clients/go/id" "github.com/micro/services/clients/go/id"
@@ -58,7 +57,6 @@ func NewClient(token string) *Client {
FileService: file.NewFileService(token), FileService: file.NewFileService(token),
ForexService: forex.NewForexService(token), ForexService: forex.NewForexService(token),
GeocodingService: geocoding.NewGeocodingService(token), GeocodingService: geocoding.NewGeocodingService(token),
GifsService: gifs.NewGifsService(token),
HelloworldService: helloworld.NewHelloworldService(token), HelloworldService: helloworld.NewHelloworldService(token),
HolidaysService: holidays.NewHolidaysService(token), HolidaysService: holidays.NewHolidaysService(token),
IdService: id.NewIdService(token), IdService: id.NewIdService(token),
@@ -103,7 +101,6 @@ type Client struct {
FileService *file.FileService FileService *file.FileService
ForexService *forex.ForexService ForexService *forex.ForexService
GeocodingService *geocoding.GeocodingService GeocodingService *geocoding.GeocodingService
GifsService *gifs.GifsService
HelloworldService *helloworld.HelloworldService HelloworldService *helloworld.HelloworldService
HolidaysService *holidays.HolidaysService HolidaysService *holidays.HolidaysService
IdService *id.IdService IdService *id.IdService

View File

@@ -10,7 +10,6 @@ import * as evchargers from "./evchargers";
import * as file from "./file"; import * as file from "./file";
import * as forex from "./forex"; import * as forex from "./forex";
import * as geocoding from "./geocoding"; import * as geocoding from "./geocoding";
import * as gifs from "./gifs";
import * as helloworld from "./helloworld"; import * as helloworld from "./helloworld";
import * as holidays from "./holidays"; import * as holidays from "./holidays";
import * as id from "./id"; import * as id from "./id";
@@ -52,7 +51,6 @@ export class Client {
this.fileService = new file.FileService(token); this.fileService = new file.FileService(token);
this.forexService = new forex.ForexService(token); this.forexService = new forex.ForexService(token);
this.geocodingService = new geocoding.GeocodingService(token); this.geocodingService = new geocoding.GeocodingService(token);
this.gifsService = new gifs.GifsService(token);
this.helloworldService = new helloworld.HelloworldService(token); this.helloworldService = new helloworld.HelloworldService(token);
this.holidaysService = new holidays.HolidaysService(token); this.holidaysService = new holidays.HolidaysService(token);
this.idService = new id.IdService(token); this.idService = new id.IdService(token);
@@ -93,7 +91,6 @@ export class Client {
fileService: file.FileService; fileService: file.FileService;
forexService: forex.ForexService; forexService: forex.ForexService;
geocodingService: geocoding.GeocodingService; geocodingService: geocoding.GeocodingService;
gifsService: gifs.GifsService;
helloworldService: helloworld.HelloworldService; helloworldService: helloworld.HelloworldService;
holidaysService: holidays.HolidaysService; holidaysService: holidays.HolidaysService;
idService: id.IdService; idService: id.IdService;

View File

@@ -65,5 +65,5 @@
}, },
"type": "module", "type": "module",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"version": "1.0.541" "version": "1.0.542"
} }

View File

@@ -26,6 +26,7 @@ type PublicAPI struct {
Pricing map[string]int64 `json:"pricing,omitempty"` Pricing map[string]int64 `json:"pricing,omitempty"`
ExamplesJson string `json:"examples_json,omitempty"` ExamplesJson string `json:"examples_json,omitempty"`
PostmanJson string `json:"postman_json,omitempty"` PostmanJson string `json:"postman_json,omitempty"`
DisplayName string `json:"display_name,omitempty"`
} }
func publishAPI(apiSpec *PublicAPI) error { func publishAPI(apiSpec *PublicAPI) error {

View File

@@ -7,5 +7,6 @@
"Crypto.Price": 2000, "Crypto.Price": 2000,
"Crypto.Quote": 2000, "Crypto.Quote": 2000,
"Crypto.History": 3500 "Crypto.History": 3500
} },
"display_name": "Crypto"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "currency", "name": "currency",
"icon": "💱", "icon": "💱",
"category": "money" "category": "money",
"display_name": "Currency"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "db", "name": "db",
"icon": "📦", "icon": "📦",
"category": "storage" "category": "storage",
"display_name": "DB"
} }

View File

@@ -4,5 +4,6 @@
"category": "communication", "category": "communication",
"pricing": { "pricing": {
"Email.Send": 1000 "Email.Send": 1000
} },
"display_name": "Email"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "emoji", "name": "emoji",
"icon": "😀", "icon": "😀",
"category": "web" "category": "web",
"display_name": "Emoji"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "evchargers", "name": "evchargers",
"icon": "🔋", "icon": "🔋",
"category": "travel" "category": "travel",
"display_name": "EV Chargers"
} }

View File

@@ -11,10 +11,10 @@ func CreateArecord() {
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := dbService.Create(&db.CreateRequest{ rsp, err := dbService.Create(&db.CreateRequest{
Record: map[string]interface{}{ Record: map[string]interface{}{
"isActive": true,
"id": "1",
"name": "Jane", "name": "Jane",
"age": 42, "age": 42,
"isActive": true,
"id": "1",
}, },
Table: "users", Table: "users",
}) })

View File

@@ -11,8 +11,8 @@ func UpdateArecord() {
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := dbService.Update(&db.UpdateRequest{ rsp, err := dbService.Update(&db.UpdateRequest{
Record: map[string]interface{}{ Record: map[string]interface{}{
"age": 43,
"id": "1", "id": "1",
"age": 43,
}, },
Table: "users", Table: "users",
}) })

View File

@@ -1,5 +1,6 @@
{ {
"name": "file", "name": "file",
"icon": "📁", "icon": "📁",
"category": "storage" "category": "storage",
"display_name": "File"
} }

View File

@@ -6,5 +6,6 @@
"Forex.Price": 2000, "Forex.Price": 2000,
"Forex.Quote": 2000, "Forex.Quote": 2000,
"Forex.History": 3500 "Forex.History": 3500
} },
"display_name": "Forex"
} }

View File

@@ -5,5 +5,6 @@
"pricing": { "pricing": {
"Geocoding.Lookup": 10000, "Geocoding.Lookup": 10000,
"Geocoding.Reverse": 10000 "Geocoding.Reverse": 10000
} },
"display_name": "Geocoding"
} }

View File

@@ -1,7 +1,7 @@
Quick and simple GIF search Quick and simple GIF search
# Gifs Service # GIFs Service
Add gifs to your project with keyword search and results in multiple sizes and formats. Add GIFs to your project with keyword search and results in multiple sizes and formats.
Powered by [GIPHY](https://giphy.com). Powered by [GIPHY](https://giphy.com).

View File

@@ -1,5 +1,6 @@
{ {
"name": "gifs", "name": "gifs",
"icon": "🎥", "icon": "🎥",
"category": "web" "category": "web",
"display_name": "GIFs"
} }

0
gifs/skip Normal file
View File

View File

@@ -1,5 +1,6 @@
{ {
"name": "helloworld", "name": "helloworld",
"icon": "👋", "icon": "👋",
"category": "example" "category": "example",
"display_name": "Hello World"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "holidays", "name": "holidays",
"icon": "🏖️", "icon": "🏖️",
"category": "util" "category": "util",
"display_name": "Holidays"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "id", "name": "id",
"icon": "🆔", "icon": "🆔",
"category": "util" "category": "util",
"display_name": "ID"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "image", "name": "image",
"icon": "🖼️", "icon": "🖼️",
"category": "web" "category": "web",
"display_name": "Image"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "ip", "name": "ip",
"icon": "🗺️", "icon": "🗺️",
"category": "location" "category": "location",
"display_name": "IP"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "location", "name": "location",
"icon": "🛰️", "icon": "🛰️",
"category": "logistics" "category": "logistics",
"display_name": "Location"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "notes", "name": "notes",
"icon": "📝", "icon": "📝",
"category": "storage" "category": "storage",
"display_name": "Notes"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "otp", "name": "otp",
"icon": "🔑", "icon": "🔑",
"category": "user" "category": "user",
"display_name": "OTP"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "postcode", "name": "postcode",
"icon": "📮", "icon": "📮",
"category": "logistics" "category": "logistics",
"display_name": "Postcode"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "prayer", "name": "prayer",
"icon": "🙏", "icon": "🙏",
"category": "religion" "category": "religion",
"display_name": "Prayer"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "qr", "name": "qr",
"icon": "🔲", "icon": "🔲",
"category": "web" "category": "web",
"display_name": "QR"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "quran", "name": "quran",
"icon": "📖", "icon": "📖",
"category": "religion" "category": "religion",
"display_name": "Quran"
} }

View File

@@ -6,5 +6,6 @@
"Routing.Route": 1000, "Routing.Route": 1000,
"Routing.Eta": 1000, "Routing.Eta": 1000,
"Routing.Directions": 1000 "Routing.Directions": 1000
} },
"display_name": "Routing"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "rss", "name": "rss",
"icon": "📰", "icon": "📰",
"category": "web" "category": "web",
"display_name": "RSS"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "sentiment", "name": "sentiment",
"icon": "🤔", "icon": "🤔",
"category": "web" "category": "web",
"display_name": "Sentiment"
} }

View File

@@ -4,5 +4,6 @@
"category": "communication", "category": "communication",
"pricing": { "pricing": {
"Sms.Send": 75000 "Sms.Send": 75000
} },
"display_name": "SMS"
} }

View File

@@ -7,5 +7,6 @@
"Stock.Quote": 2000, "Stock.Quote": 2000,
"Stock.History": 3500, "Stock.History": 3500,
"Stock.OrderBook": 3500 "Stock.OrderBook": 3500
} },
"display_name": "Stock"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "stream", "name": "stream",
"icon": "🌊", "icon": "🌊",
"category": "messaging" "category": "messaging",
"display_name": "Stream"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "sunnah", "name": "sunnah",
"icon": "📖", "icon": "📖",
"category": "religion" "category": "religion",
"display_name": "Sunnah"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "thumbnail", "name": "thumbnail",
"icon": "📸", "icon": "📸",
"category": "web" "category": "web",
"display_name": "Thumbnail"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "time", "name": "time",
"icon": "🌐", "icon": "🌐",
"category": "timezone" "category": "timezone",
"display_name": "Time"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "twitter", "name": "twitter",
"icon": "💬", "icon": "💬",
"category": "social" "category": "social",
"display_name": "Twitter"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "url", "name": "url",
"icon": "🔗", "icon": "🔗",
"category": "web" "category": "web",
"display_name": "URL"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "user", "name": "user",
"icon": "👤", "icon": "👤",
"category": "authentication" "category": "authentication",
"display_name": "User"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "vehicle", "name": "vehicle",
"icon": "🚗", "icon": "🚗",
"category": "dvla" "category": "dvla",
"display_name": "Vehicle"
} }

View File

@@ -1,5 +1,6 @@
{ {
"name": "weather", "name": "weather",
"icon": "☀️", "icon": "☀️",
"category": "climate" "category": "climate",
"display_name": "Weather"
} }