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",
|
||||
"pricing": {
|
||||
"Address.LookupPostcode": 75000
|
||||
}
|
||||
},
|
||||
"display_name": "Address"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "answer",
|
||||
"icon": "❓",
|
||||
"category": "search"
|
||||
"category": "search",
|
||||
"display_name": "Answer"
|
||||
}
|
||||
|
||||
3
cache/publicapi.json
vendored
3
cache/publicapi.json
vendored
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "cache",
|
||||
"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/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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -65,5 +65,5 @@
|
||||
},
|
||||
"type": "module",
|
||||
"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"`
|
||||
ExamplesJson string `json:"examples_json,omitempty"`
|
||||
PostmanJson string `json:"postman_json,omitempty"`
|
||||
DisplayName string `json:"display_name,omitempty"`
|
||||
}
|
||||
|
||||
func publishAPI(apiSpec *PublicAPI) error {
|
||||
|
||||
@@ -7,5 +7,6 @@
|
||||
"Crypto.Price": 2000,
|
||||
"Crypto.Quote": 2000,
|
||||
"Crypto.History": 3500
|
||||
}
|
||||
},
|
||||
"display_name": "Crypto"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "currency",
|
||||
"icon": "💱",
|
||||
"category": "money"
|
||||
"category": "money",
|
||||
"display_name": "Currency"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "db",
|
||||
"icon": "📦",
|
||||
"category": "storage"
|
||||
"category": "storage",
|
||||
"display_name": "DB"
|
||||
}
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
"category": "communication",
|
||||
"pricing": {
|
||||
"Email.Send": 1000
|
||||
}
|
||||
},
|
||||
"display_name": "Email"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "emoji",
|
||||
"icon": "😀",
|
||||
"category": "web"
|
||||
"category": "web",
|
||||
"display_name": "Emoji"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "evchargers",
|
||||
"icon": "🔋",
|
||||
"category": "travel"
|
||||
"category": "travel",
|
||||
"display_name": "EV Chargers"
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
})
|
||||
|
||||
@@ -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",
|
||||
})
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "file",
|
||||
"icon": "📁",
|
||||
"category": "storage"
|
||||
"category": "storage",
|
||||
"display_name": "File"
|
||||
}
|
||||
|
||||
@@ -6,5 +6,6 @@
|
||||
"Forex.Price": 2000,
|
||||
"Forex.Quote": 2000,
|
||||
"Forex.History": 3500
|
||||
}
|
||||
},
|
||||
"display_name": "Forex"
|
||||
}
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
"pricing": {
|
||||
"Geocoding.Lookup": 10000,
|
||||
"Geocoding.Reverse": 10000
|
||||
}
|
||||
},
|
||||
"display_name": "Geocoding"
|
||||
}
|
||||
|
||||
@@ -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).
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "gifs",
|
||||
"icon": "🎥",
|
||||
"category": "web"
|
||||
"category": "web",
|
||||
"display_name": "GIFs"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "helloworld",
|
||||
"icon": "👋",
|
||||
"category": "example"
|
||||
"category": "example",
|
||||
"display_name": "Hello World"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "holidays",
|
||||
"icon": "🏖️",
|
||||
"category": "util"
|
||||
"category": "util",
|
||||
"display_name": "Holidays"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "id",
|
||||
"icon": "🆔",
|
||||
"category": "util"
|
||||
"category": "util",
|
||||
"display_name": "ID"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "image",
|
||||
"icon": "🖼️",
|
||||
"category": "web"
|
||||
"category": "web",
|
||||
"display_name": "Image"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "ip",
|
||||
"icon": "🗺️",
|
||||
"category": "location"
|
||||
"category": "location",
|
||||
"display_name": "IP"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "location",
|
||||
"icon": "🛰️",
|
||||
"category": "logistics"
|
||||
"category": "logistics",
|
||||
"display_name": "Location"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "notes",
|
||||
"icon": "📝",
|
||||
"category": "storage"
|
||||
"category": "storage",
|
||||
"display_name": "Notes"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "otp",
|
||||
"icon": "🔑",
|
||||
"category": "user"
|
||||
"category": "user",
|
||||
"display_name": "OTP"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "postcode",
|
||||
"icon": "📮",
|
||||
"category": "logistics"
|
||||
"category": "logistics",
|
||||
"display_name": "Postcode"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "prayer",
|
||||
"icon": "🙏",
|
||||
"category": "religion"
|
||||
"category": "religion",
|
||||
"display_name": "Prayer"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "qr",
|
||||
"icon": "🔲",
|
||||
"category": "web"
|
||||
"category": "web",
|
||||
"display_name": "QR"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "quran",
|
||||
"icon": "📖",
|
||||
"category": "religion"
|
||||
"category": "religion",
|
||||
"display_name": "Quran"
|
||||
}
|
||||
|
||||
@@ -6,5 +6,6 @@
|
||||
"Routing.Route": 1000,
|
||||
"Routing.Eta": 1000,
|
||||
"Routing.Directions": 1000
|
||||
}
|
||||
},
|
||||
"display_name": "Routing"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "rss",
|
||||
"icon": "📰",
|
||||
"category": "web"
|
||||
"category": "web",
|
||||
"display_name": "RSS"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "sentiment",
|
||||
"icon": "🤔",
|
||||
"category": "web"
|
||||
"category": "web",
|
||||
"display_name": "Sentiment"
|
||||
}
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
"category": "communication",
|
||||
"pricing": {
|
||||
"Sms.Send": 75000
|
||||
}
|
||||
},
|
||||
"display_name": "SMS"
|
||||
}
|
||||
|
||||
@@ -7,5 +7,6 @@
|
||||
"Stock.Quote": 2000,
|
||||
"Stock.History": 3500,
|
||||
"Stock.OrderBook": 3500
|
||||
}
|
||||
},
|
||||
"display_name": "Stock"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "stream",
|
||||
"icon": "🌊",
|
||||
"category": "messaging"
|
||||
"category": "messaging",
|
||||
"display_name": "Stream"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "sunnah",
|
||||
"icon": "📖",
|
||||
"category": "religion"
|
||||
"category": "religion",
|
||||
"display_name": "Sunnah"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"icon": "📸",
|
||||
"category": "web"
|
||||
"category": "web",
|
||||
"display_name": "Thumbnail"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "time",
|
||||
"icon": "🌐",
|
||||
"category": "timezone"
|
||||
"category": "timezone",
|
||||
"display_name": "Time"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "twitter",
|
||||
"icon": "💬",
|
||||
"category": "social"
|
||||
"category": "social",
|
||||
"display_name": "Twitter"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "url",
|
||||
"icon": "🔗",
|
||||
"category": "web"
|
||||
"category": "web",
|
||||
"display_name": "URL"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "user",
|
||||
"icon": "👤",
|
||||
"category": "authentication"
|
||||
"category": "authentication",
|
||||
"display_name": "User"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "vehicle",
|
||||
"icon": "🚗",
|
||||
"category": "dvla"
|
||||
"category": "dvla",
|
||||
"display_name": "Vehicle"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "weather",
|
||||
"icon": "☀️",
|
||||
"category": "climate"
|
||||
"category": "climate",
|
||||
"display_name": "Weather"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user