102 lines
2.1 KiB
YAML
102 lines
2.1 KiB
YAML
definitions:
|
|
models.Card:
|
|
properties:
|
|
code:
|
|
type: string
|
|
enabled:
|
|
type: boolean
|
|
id:
|
|
type: integer
|
|
runner:
|
|
$ref: '#/definitions/models.Runner'
|
|
type: object
|
|
models.CardRequest:
|
|
properties:
|
|
card:
|
|
items:
|
|
$ref: '#/definitions/models.Card'
|
|
type: array
|
|
locale:
|
|
enum:
|
|
- en
|
|
- de
|
|
type: string
|
|
type: object
|
|
models.ContractRequest:
|
|
properties:
|
|
locale:
|
|
enum:
|
|
- en
|
|
- de
|
|
type: string
|
|
runners:
|
|
items:
|
|
$ref: '#/definitions/models.Runner'
|
|
type: array
|
|
type: object
|
|
models.Group:
|
|
properties:
|
|
id:
|
|
type: integer
|
|
name:
|
|
type: string
|
|
parent_group:
|
|
$ref: '#/definitions/models.Group'
|
|
type: object
|
|
models.Runner:
|
|
properties:
|
|
first_name:
|
|
type: string
|
|
group:
|
|
$ref: '#/definitions/models.Group'
|
|
id:
|
|
type: integer
|
|
last_name:
|
|
type: string
|
|
middle_name:
|
|
type: string
|
|
type: object
|
|
info:
|
|
contact: {}
|
|
description: This is the API documentation for the LfK Document Server - a tool
|
|
for pdf generation.
|
|
title: LfK Document Server API
|
|
paths:
|
|
/cards:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Generate cards based on the provided data
|
|
parameters:
|
|
- description: Card data
|
|
in: body
|
|
name: data
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/models.CardRequest'
|
|
produces:
|
|
- application/pdf
|
|
responses: {}
|
|
summary: Generate runner cards
|
|
tags:
|
|
- cards
|
|
/contracts:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: Generate a contract based on the provided data
|
|
parameters:
|
|
- description: Contract data
|
|
in: body
|
|
name: data
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/models.ContractRequest'
|
|
produces:
|
|
- application/pdf
|
|
responses: {}
|
|
summary: Generate a contract
|
|
tags:
|
|
- contracts
|
|
swagger: "2.0"
|