forgejo/public/assets/forgejo/api.v1.yml
Gusted 11ae7f6e85
[API] Move forgejo api file (squash)
- Move the file to accommodate faa28b5a44

(cherry picked from commit bce89351d2)
2023-10-23 14:16:25 +02:00

41 lines
863 B
YAML

openapi: 3.0.0
info:
title: Forgejo API
description: |-
Forgejo REST API
contact:
email: contact@forgejo.org
license:
name: MIT
url: https://codeberg.org/forgejo/forgejo/src/branch/forgejo/LICENSE
version: 1.0.0
externalDocs:
description: Find out more about Forgejo
url: http://forgejo.org
servers:
- url: /api/forgejo/v1
paths:
/version:
get:
summary: API version
description: Semantic version of the Forgejo API
operationId: getVersion
responses:
'200':
description: successful operation
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Version'
components:
schemas:
Version:
type: object
properties:
version:
type: string