mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
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:
@@ -4,5 +4,6 @@
|
|||||||
"category": "logistics",
|
"category": "logistics",
|
||||||
"pricing": {
|
"pricing": {
|
||||||
"Address.LookupPostcode": 75000
|
"Address.LookupPostcode": 75000
|
||||||
}
|
},
|
||||||
|
"display_name": "Address"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "answer",
|
"name": "answer",
|
||||||
"icon": "❓",
|
"icon": "❓",
|
||||||
"category": "search"
|
"category": "search",
|
||||||
|
"display_name": "Answer"
|
||||||
}
|
}
|
||||||
|
|||||||
3
cache/publicapi.json
vendored
3
cache/publicapi.json
vendored
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cache",
|
"name": "cache",
|
||||||
"icon": "💭",
|
"icon": "💭",
|
||||||
"category": "storage"
|
"category": "storage",
|
||||||
|
"display_name": "Cache"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "currency",
|
"name": "currency",
|
||||||
"icon": "💱",
|
"icon": "💱",
|
||||||
"category": "money"
|
"category": "money",
|
||||||
|
"display_name": "Currency"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "db",
|
"name": "db",
|
||||||
"icon": "📦",
|
"icon": "📦",
|
||||||
"category": "storage"
|
"category": "storage",
|
||||||
|
"display_name": "DB"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"category": "communication",
|
"category": "communication",
|
||||||
"pricing": {
|
"pricing": {
|
||||||
"Email.Send": 1000
|
"Email.Send": 1000
|
||||||
}
|
},
|
||||||
|
"display_name": "Email"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "emoji",
|
"name": "emoji",
|
||||||
"icon": "😀",
|
"icon": "😀",
|
||||||
"category": "web"
|
"category": "web",
|
||||||
|
"display_name": "Emoji"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "evchargers",
|
"name": "evchargers",
|
||||||
"icon": "🔋",
|
"icon": "🔋",
|
||||||
"category": "travel"
|
"category": "travel",
|
||||||
|
"display_name": "EV Chargers"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "file",
|
"name": "file",
|
||||||
"icon": "📁",
|
"icon": "📁",
|
||||||
"category": "storage"
|
"category": "storage",
|
||||||
|
"display_name": "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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,5 +5,6 @@
|
|||||||
"pricing": {
|
"pricing": {
|
||||||
"Geocoding.Lookup": 10000,
|
"Geocoding.Lookup": 10000,
|
||||||
"Geocoding.Reverse": 10000
|
"Geocoding.Reverse": 10000
|
||||||
}
|
},
|
||||||
|
"display_name": "Geocoding"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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).
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gifs",
|
"name": "gifs",
|
||||||
"icon": "🎥",
|
"icon": "🎥",
|
||||||
"category": "web"
|
"category": "web",
|
||||||
|
"display_name": "GIFs"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "helloworld",
|
"name": "helloworld",
|
||||||
"icon": "👋",
|
"icon": "👋",
|
||||||
"category": "example"
|
"category": "example",
|
||||||
|
"display_name": "Hello World"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "holidays",
|
"name": "holidays",
|
||||||
"icon": "🏖️",
|
"icon": "🏖️",
|
||||||
"category": "util"
|
"category": "util",
|
||||||
|
"display_name": "Holidays"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "id",
|
"name": "id",
|
||||||
"icon": "🆔",
|
"icon": "🆔",
|
||||||
"category": "util"
|
"category": "util",
|
||||||
|
"display_name": "ID"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "image",
|
"name": "image",
|
||||||
"icon": "🖼️",
|
"icon": "🖼️",
|
||||||
"category": "web"
|
"category": "web",
|
||||||
|
"display_name": "Image"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ip",
|
"name": "ip",
|
||||||
"icon": "🗺️",
|
"icon": "🗺️",
|
||||||
"category": "location"
|
"category": "location",
|
||||||
|
"display_name": "IP"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "location",
|
"name": "location",
|
||||||
"icon": "🛰️",
|
"icon": "🛰️",
|
||||||
"category": "logistics"
|
"category": "logistics",
|
||||||
|
"display_name": "Location"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "notes",
|
"name": "notes",
|
||||||
"icon": "📝",
|
"icon": "📝",
|
||||||
"category": "storage"
|
"category": "storage",
|
||||||
|
"display_name": "Notes"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "otp",
|
"name": "otp",
|
||||||
"icon": "🔑",
|
"icon": "🔑",
|
||||||
"category": "user"
|
"category": "user",
|
||||||
|
"display_name": "OTP"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "postcode",
|
"name": "postcode",
|
||||||
"icon": "📮",
|
"icon": "📮",
|
||||||
"category": "logistics"
|
"category": "logistics",
|
||||||
|
"display_name": "Postcode"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "prayer",
|
"name": "prayer",
|
||||||
"icon": "🙏",
|
"icon": "🙏",
|
||||||
"category": "religion"
|
"category": "religion",
|
||||||
|
"display_name": "Prayer"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "qr",
|
"name": "qr",
|
||||||
"icon": "🔲",
|
"icon": "🔲",
|
||||||
"category": "web"
|
"category": "web",
|
||||||
|
"display_name": "QR"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "quran",
|
"name": "quran",
|
||||||
"icon": "📖",
|
"icon": "📖",
|
||||||
"category": "religion"
|
"category": "religion",
|
||||||
|
"display_name": "Quran"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rss",
|
"name": "rss",
|
||||||
"icon": "📰",
|
"icon": "📰",
|
||||||
"category": "web"
|
"category": "web",
|
||||||
|
"display_name": "RSS"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sentiment",
|
"name": "sentiment",
|
||||||
"icon": "🤔",
|
"icon": "🤔",
|
||||||
"category": "web"
|
"category": "web",
|
||||||
|
"display_name": "Sentiment"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"category": "communication",
|
"category": "communication",
|
||||||
"pricing": {
|
"pricing": {
|
||||||
"Sms.Send": 75000
|
"Sms.Send": 75000
|
||||||
}
|
},
|
||||||
|
"display_name": "SMS"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "stream",
|
"name": "stream",
|
||||||
"icon": "🌊",
|
"icon": "🌊",
|
||||||
"category": "messaging"
|
"category": "messaging",
|
||||||
|
"display_name": "Stream"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sunnah",
|
"name": "sunnah",
|
||||||
"icon": "📖",
|
"icon": "📖",
|
||||||
"category": "religion"
|
"category": "religion",
|
||||||
|
"display_name": "Sunnah"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "thumbnail",
|
"name": "thumbnail",
|
||||||
"icon": "📸",
|
"icon": "📸",
|
||||||
"category": "web"
|
"category": "web",
|
||||||
|
"display_name": "Thumbnail"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "time",
|
"name": "time",
|
||||||
"icon": "🌐",
|
"icon": "🌐",
|
||||||
"category": "timezone"
|
"category": "timezone",
|
||||||
|
"display_name": "Time"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "twitter",
|
"name": "twitter",
|
||||||
"icon": "💬",
|
"icon": "💬",
|
||||||
"category": "social"
|
"category": "social",
|
||||||
|
"display_name": "Twitter"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "url",
|
"name": "url",
|
||||||
"icon": "🔗",
|
"icon": "🔗",
|
||||||
"category": "web"
|
"category": "web",
|
||||||
|
"display_name": "URL"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "user",
|
"name": "user",
|
||||||
"icon": "👤",
|
"icon": "👤",
|
||||||
"category": "authentication"
|
"category": "authentication",
|
||||||
|
"display_name": "User"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vehicle",
|
"name": "vehicle",
|
||||||
"icon": "🚗",
|
"icon": "🚗",
|
||||||
"category": "dvla"
|
"category": "dvla",
|
||||||
|
"display_name": "Vehicle"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "weather",
|
"name": "weather",
|
||||||
"icon": "☀️",
|
"icon": "☀️",
|
||||||
"category": "climate"
|
"category": "climate",
|
||||||
|
"display_name": "Weather"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user