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",
"pricing": {
"Address.LookupPostcode": 75000
}
},
"display_name": "Address"
}

View File

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

View File

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

View File

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

View File

@@ -65,5 +65,5 @@
},
"type": "module",
"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"`
ExamplesJson string `json:"examples_json,omitempty"`
PostmanJson string `json:"postman_json,omitempty"`
DisplayName string `json:"display_name,omitempty"`
}
func publishAPI(apiSpec *PublicAPI) error {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,6 @@
{
"name": "evchargers",
"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"))
rsp, err := dbService.Create(&db.CreateRequest{
Record: map[string]interface{}{
"isActive": true,
"id": "1",
"name": "Jane",
"age": 42,
"isActive": true,
"id": "1",
},
Table: "users",
})

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
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).

View File

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

0
gifs/skip Normal file
View File

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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