Files
gerald/api/gerald.yaml
aspasskiy 2939c42f3c
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing
update
2024-04-20 17:45:47 +03:00

79 lines
1.7 KiB
YAML

swagger: '2.0'
info:
description: "gerald - feedback application server"
version: 0.0.1
title: gerald
basePath: /
consumes:
- application/json
produces:
- application/json
paths:
/feedback:
post:
summary: "Create a feedback"
tags:
- "feedback"
description: "Create a feedback"
operationId: "createFeedback"
parameters:
- in: body
name: body
description: "Feedback object that needs to be created"
required: true
schema:
$ref: "#/definitions/Feedback"
- in: query
name: session_uuid
description: "Session UUID"
required: true
type: string
responses:
200:
description: "successful operation"
403:
description: "Forbidden"
/feedbacks:
get:
summary: "Get all feedbacks"
tags:
- "feedback"
description: "Get all feedbacks"
operationId: "getFeedbacks"
parameters:
- in: query
name: session_uuid
description: "Session UUID"
required: true
type: string
responses:
200:
description: "successful operation"
schema:
type: array
items:
$ref: "#/definitions/Feedback"
403:
description: "Forbidden"
definitions:
Feedback:
type: object
properties:
user_id:
type: string
description: to have more context about the user
project_id:
type: string
description: to have more context about the project
type:
type: string
enum:
- feature_request
- feedback
- support
text:
type: string