apiVersion: backstage.io/v1alpha1 kind: Component metadata: name: test-alex-2 description: test-alex-2 annotations: humanitec.dev/orgId: skillful-wild-chicken-2617 humanitec.dev/projectId: test-alex-2 backstage.io/techdocs-ref: dir:. backstage.io/kubernetes-namespace: dev backstage.io/kubernetes-namespaces: "dev,staging,prod" backstage.io/kubernetes-label-selector: "app=test-alex-2" gitea.kyndemo.live/repo-slug: "demo-platform/test-alex-2" prometheus.io/scrape: "true" prometheus.io/port: "8080" prometheus.io/path: "/actuator/prometheus" grafana/grafana-instance: default grafana/alert-label-selector: "app=test-alex-2" grafana/dashboard-selector: "uid == 'app-test-alex-2'" tags: - microservice - golden-path - java-springboot - stateless links: - url: https://console.humanitec.dev/orgs/skillful-wild-chicken-2617/projects/test-alex-2 title: Humanitec Console icon: dashboard - url: https://grafana.kyndemo.live/d/app-metrics?var-app=test-alex-2 title: Grafana Dashboard icon: dashboard - url: https://gitea.kyndemo.live/demo-platform/test-alex-2 title: Source Repository icon: github spec: type: service owner: group:default/platform-engineering system: system:default/platform-engineering lifecycle: experimental providesApis: - test-alex-2-api --- apiVersion: backstage.io/v1alpha1 kind: API metadata: name: test-alex-2-api description: REST API for test-alex-2 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-2 version: "0.1.0" description: "test-alex-2" servers: - url: https://test-alex-2.kyndemo.live paths: /api/items: get: summary: List all items responses: "200": description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/Item' post: summary: Create a new item requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ItemRequest' 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 requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ItemRequest' responses: "200": description: OK delete: summary: Delete item parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Deleted /actuator/health: get: summary: Health check responses: "200": description: UP components: schemas: Item: type: object properties: id: type: integer name: type: string description: type: string ItemRequest: type: object properties: name: type: string description: type: string