initial commit
All checks were successful
Build and Push to ACR / Build and Push (push) Successful in 46s
All checks were successful
Build and Push to ACR / Build and Push (push) Successful in 46s
Change-Id: I15e0d095273278f8531caa7399565fe92857a7ad
This commit is contained in:
125
catalog-info.yaml
Normal file
125
catalog-info.yaml
Normal file
@@ -0,0 +1,125 @@
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
kind: Component
|
||||
metadata:
|
||||
name: test-alex-1
|
||||
description: test-alex-1
|
||||
annotations:
|
||||
humanitec.dev/orgId: skillful-wild-chicken-2617
|
||||
humanitec.dev/projectId: cjot-platform
|
||||
backstage.io/techdocs-ref: dir:.
|
||||
backstage.io/kubernetes-namespace: dev
|
||||
backstage.io/kubernetes-namespaces: "dev"
|
||||
backstage.io/kubernetes-label-selector: "app=test-alex-1"
|
||||
gitea.kyndemo.live/repo-slug: "demo-platform/test-alex-1"
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "8000"
|
||||
prometheus.io/path: "/metrics"
|
||||
grafana/grafana-instance: default
|
||||
grafana/alert-label-selector: "app=test-alex-1"
|
||||
grafana/dashboard-selector: "uid == 'app-test-alex-1'"
|
||||
tags:
|
||||
- microservice
|
||||
- golden-path
|
||||
- python-fastapi
|
||||
- stateless
|
||||
links:
|
||||
- url: https://console.humanitec.dev/orgs/skillful-wild-chicken-2617/projects/cjot-platform
|
||||
title: Humanitec Console
|
||||
icon: dashboard
|
||||
- url: https://gitea.kyndemo.live/demo-platform/test-alex-1
|
||||
title: Source Repository
|
||||
icon: github
|
||||
spec:
|
||||
type: service
|
||||
owner: group:default/platform-engineering
|
||||
system: system:default/platform-engineering
|
||||
lifecycle: experimental
|
||||
providesApis:
|
||||
- test-alex-1-api
|
||||
---
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
kind: API
|
||||
metadata:
|
||||
name: test-alex-1-api
|
||||
description: REST API for test-alex-1
|
||||
annotations:
|
||||
backstage.io/techdocs-ref: dir:.
|
||||
spec:
|
||||
type: openapi
|
||||
lifecycle: experimental
|
||||
owner: group:default/platform-engineering
|
||||
system: system:default/platform-engineering
|
||||
definition: |
|
||||
openapi: "3.0.0"
|
||||
info:
|
||||
title: test-alex-1
|
||||
version: "0.1.0"
|
||||
description: "test-alex-1"
|
||||
servers:
|
||||
- url: https://test-alex-1.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 item 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 }"
|
||||
/metrics:
|
||||
get:
|
||||
summary: Prometheus metrics
|
||||
responses:
|
||||
"200":
|
||||
description: Prometheus text format
|
||||
/docs:
|
||||
get:
|
||||
summary: Swagger UI
|
||||
responses:
|
||||
"200":
|
||||
description: HTML
|
||||
Reference in New Issue
Block a user