API removed
This commit is contained in:
parent
6a1906acab
commit
ef9fdbeee9
@ -34,94 +34,12 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
type: service
|
type: service
|
||||||
lifecycle: testing
|
lifecycle: testing
|
||||||
owner: group:infrastructure
|
owner: platform-team
|
||||||
system: job-management
|
system: job-management
|
||||||
providesApis:
|
|
||||||
- scheduler-service-api
|
|
||||||
dependsOn:
|
dependsOn:
|
||||||
- resource:default/os-scheduling-database
|
- resource:default/os-scheduling-database
|
||||||
---
|
---
|
||||||
apiVersion: backstage.io/v1alpha1
|
apiVersion: backstage.io/v1alpha1
|
||||||
kind: API
|
|
||||||
metadata:
|
|
||||||
name: scheduler-service-api
|
|
||||||
title: Scheduler Service API
|
|
||||||
description: REST API for job scheduling and management
|
|
||||||
spec:
|
|
||||||
type: openapi
|
|
||||||
lifecycle: testing
|
|
||||||
owner: group:infrastructure
|
|
||||||
system: job-management
|
|
||||||
definition: |
|
|
||||||
openapi: 3.0.0
|
|
||||||
info:
|
|
||||||
title: Scheduler Service API
|
|
||||||
version: 1.0.0
|
|
||||||
description: Job scheduling and execution service API
|
|
||||||
servers:
|
|
||||||
- url: http://scheduler-service.cnoe.localtest.me/schedulerService
|
|
||||||
description: Local development
|
|
||||||
paths:
|
|
||||||
/job:
|
|
||||||
post:
|
|
||||||
summary: Create a new job
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: Job created successfully
|
|
||||||
/jobTrigger:
|
|
||||||
get:
|
|
||||||
summary: Get job trigger status / Health check
|
|
||||||
parameters:
|
|
||||||
- name: jsonQuery
|
|
||||||
in: query
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: Job trigger status
|
|
||||||
post:
|
|
||||||
summary: Trigger job execution
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: Job triggered
|
|
||||||
/schedules:
|
|
||||||
get:
|
|
||||||
summary: List schedules
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: List of schedules
|
|
||||||
post:
|
|
||||||
summary: Create schedule
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: Schedule created
|
|
||||||
/group:
|
|
||||||
get:
|
|
||||||
summary: List groups
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: List of groups
|
|
||||||
/jobStat:
|
|
||||||
get:
|
|
||||||
summary: Get job statistics
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: Job statistics
|
|
||||||
/jobDetail:
|
|
||||||
get:
|
|
||||||
summary: Get job details
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: Job details
|
|
||||||
/cluster:
|
|
||||||
get:
|
|
||||||
summary: Get cluster information
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: Cluster info
|
|
||||||
---
|
|
||||||
apiVersion: backstage.io/v1alpha1
|
|
||||||
kind: Resource
|
kind: Resource
|
||||||
metadata:
|
metadata:
|
||||||
name: scheduler-service-database
|
name: scheduler-service-database
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user