remove m3o references (#256)

* remove m3o references

* fix notes

* remove cruft
This commit is contained in:
Asim Aslam
2021-11-03 21:54:34 +00:00
committed by GitHub
parent 2b1122711f
commit 7b2915bcc1
8 changed files with 6 additions and 91 deletions

View File

@@ -1,6 +1,6 @@
package main
const goIndexTemplate = `package m3o
const goIndexTemplate = `package services
import(
{{ range $service := .services }}"github.com/micro/services/clients/go/{{ $service.Name}}"
@@ -25,7 +25,7 @@ type Client struct {
const goServiceTemplate = `{{ $service := .service }}package {{ $service.Name }}
import(
"github.com/m3o/m3o-go/client"
"github.com/micro/micro-go/client"
)
func New{{ title $service.Name }}Service(token string) *{{ title $service.Name }}Service {
@@ -72,7 +72,7 @@ import(
}
`
const curlExampleTemplate = `{{ $service := .service }}curl "https://api.m3o.com/v1/{{ $service.Name }}/{{ title .endpoint }}" \
const curlExampleTemplate = `{{ $service := .service }}curl "http://localhost:8080/{{ $service.Name }}/{{ title .endpoint }}" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{{ tsExampleRequest $service.Name .endpoint $service.Spec.Components.Schemas .example.Request }}'`