Semaphore/api-docs-runners.yml
Denis Gukov b5a99eba7f
Runners (#1439)
* refactor(runners): extract jobs to separate entity
2023-08-27 18:02:51 +02:00

54 lines
886 B
YAML

swagger: '3.0'
info:
title: SEMAPHORE
description: Semaphore Runner API
version: "2.2.0"
host: localhost:3000
consumes:
- application/json
produces:
- application/json
- text/plain; charset=utf-8
tags:
- name: authentication
description: Authentication, Logout & API Tokens
- name: project
description: Everything related to a project
- name: user
description: User-related API
schemes:
- http
- https
basePath: /api/runners
definitions:
paths:
/register:
post:
requestBody:
content:
application/json:
schema:
type: object
required:
- registrationToken
properties:
registrationToken: { type: string }
responses:
200:
description: API Token
/unregister:
post:
/status:
put:
/jobs:
get: