Files
gerald/internal/interfaces/rest/restapi/embedded_spec.go
aspasskiy 8fb0c0f056
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing
created_at to api
2024-04-21 19:04:41 +03:00

253 lines
5.7 KiB
Go

// Code generated by go-swagger; DO NOT EDIT.
package restapi
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
)
var (
// SwaggerJSON embedded version of the swagger document used at generation time
SwaggerJSON json.RawMessage
// FlatSwaggerJSON embedded flattened version of the swagger document used at generation time
FlatSwaggerJSON json.RawMessage
)
func init() {
SwaggerJSON = json.RawMessage([]byte(`{
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"swagger": "2.0",
"info": {
"description": "gerald - feedback application server",
"title": "gerald",
"version": "0.0.1"
},
"basePath": "/",
"paths": {
"/feedback": {
"post": {
"description": "Create a feedback",
"tags": [
"feedback"
],
"summary": "Create a feedback",
"operationId": "createFeedback",
"parameters": [
{
"description": "Feedback object that needs to be created",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/Feedback"
}
},
{
"type": "string",
"description": "Session UUID",
"name": "session_uuid",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "successful operation"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/feedbacks": {
"get": {
"description": "Get all feedbacks",
"tags": [
"feedback"
],
"summary": "Get all feedbacks",
"operationId": "getFeedbacks",
"parameters": [
{
"type": "string",
"description": "Session UUID",
"name": "session_uuid",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/Feedback"
}
}
},
"403": {
"description": "Forbidden"
}
}
}
}
},
"definitions": {
"Feedback": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"format": "date-time"
},
"project_id": {
"description": "to have more context about the project",
"type": "string"
},
"text": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"feature_request",
"feedback",
"support"
]
},
"user_id": {
"description": "to have more context about the user",
"type": "string"
}
}
}
}
}`))
FlatSwaggerJSON = json.RawMessage([]byte(`{
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"swagger": "2.0",
"info": {
"description": "gerald - feedback application server",
"title": "gerald",
"version": "0.0.1"
},
"basePath": "/",
"paths": {
"/feedback": {
"post": {
"description": "Create a feedback",
"tags": [
"feedback"
],
"summary": "Create a feedback",
"operationId": "createFeedback",
"parameters": [
{
"description": "Feedback object that needs to be created",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/Feedback"
}
},
{
"type": "string",
"description": "Session UUID",
"name": "session_uuid",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "successful operation"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/feedbacks": {
"get": {
"description": "Get all feedbacks",
"tags": [
"feedback"
],
"summary": "Get all feedbacks",
"operationId": "getFeedbacks",
"parameters": [
{
"type": "string",
"description": "Session UUID",
"name": "session_uuid",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/Feedback"
}
}
},
"403": {
"description": "Forbidden"
}
}
}
}
},
"definitions": {
"Feedback": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"format": "date-time"
},
"project_id": {
"description": "to have more context about the project",
"type": "string"
},
"text": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"feature_request",
"feedback",
"support"
]
},
"user_id": {
"description": "to have more context about the user",
"type": "string"
}
}
}
}
}`))
}