initial commit
Change-Id: Ied1b5f2137f2b5f803d5411235607bd27c5e57ba
This commit is contained in:
113
catalog-info.yaml
Normal file
113
catalog-info.yaml
Normal file
@@ -0,0 +1,113 @@
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
kind: Component
|
||||
metadata:
|
||||
name: tmpl-test-go
|
||||
description: Test scaffold for go runtime
|
||||
annotations:
|
||||
humanitec.dev/orgId: skillful-wild-chicken-2617
|
||||
humanitec.dev/projectId: tmpl-test-go
|
||||
backstage.io/techdocs-ref: dir:.
|
||||
backstage.io/kubernetes-namespace: dev
|
||||
backstage.io/kubernetes-namespaces: "dev"
|
||||
backstage.io/kubernetes-label-selector: "app=tmpl-test-go"
|
||||
gitea.kyndemo.live/repo-slug: "validate/tmpl-test-go"
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "8080"
|
||||
prometheus.io/path: "/metrics"
|
||||
grafana/grafana-instance: default
|
||||
grafana/alert-label-selector: "app=tmpl-test-go"
|
||||
grafana/dashboard-selector: "uid == 'app-tmpl-test-go'"
|
||||
tags:
|
||||
- microservice
|
||||
- golden-path
|
||||
- go
|
||||
- stateless
|
||||
links:
|
||||
- url: https://console.humanitec.dev/orgs/skillful-wild-chicken-2617/projects/tmpl-test-go
|
||||
title: Humanitec Console
|
||||
icon: dashboard
|
||||
- url: https://gitea.kyndemo.live/validate/tmpl-test-go
|
||||
title: Source Repository
|
||||
icon: github
|
||||
spec:
|
||||
type: service
|
||||
owner: platform-engineering
|
||||
|
||||
lifecycle: experimental
|
||||
providesApis:
|
||||
- tmpl-test-go-api
|
||||
---
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
kind: API
|
||||
metadata:
|
||||
name: tmpl-test-go-api
|
||||
description: REST API for tmpl-test-go
|
||||
annotations:
|
||||
backstage.io/techdocs-ref: dir:.
|
||||
spec:
|
||||
type: openapi
|
||||
lifecycle: experimental
|
||||
owner: platform-engineering
|
||||
|
||||
definition: |
|
||||
openapi: "3.0.0"
|
||||
info:
|
||||
title: tmpl-test-go
|
||||
version: "0.1.0"
|
||||
description: "Test scaffold for go runtime"
|
||||
servers:
|
||||
- url: https://tmpl-test-go.kyndemo.live
|
||||
paths:
|
||||
/api/items:
|
||||
get:
|
||||
summary: List all items
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
post:
|
||||
summary: Create item
|
||||
responses:
|
||||
"201":
|
||||
description: Created
|
||||
/api/items/{id}:
|
||||
get:
|
||||
summary: Get by ID
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
"404":
|
||||
description: Not found
|
||||
put:
|
||||
summary: Update item
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
delete:
|
||||
summary: Delete item
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
responses:
|
||||
"200":
|
||||
description: Deleted
|
||||
/health:
|
||||
get:
|
||||
summary: Health check
|
||||
responses:
|
||||
"200":
|
||||
description: "{ status: UP }"
|
||||
Reference in New Issue
Block a user