This commit is contained in:
2024-04-02 22:00:33 -05:00
parent 7c52969e1b
commit 9a4023acab
6 changed files with 77 additions and 0 deletions

View File

@@ -60,6 +60,11 @@ const docTemplate = `{
},
"/jokes/dadjoke": {
"get": {
"security": [
{
"Authorization": []
}
],
"description": "get a dad joke",
"consumes": [
"application/json"
@@ -87,6 +92,11 @@ const docTemplate = `{
}
},
"post": {
"security": [
{
"Authorization": []
}
],
"description": "create a dad joke",
"consumes": [
"application/json"
@@ -123,6 +133,11 @@ const docTemplate = `{
}
},
"delete": {
"security": [
{
"Authorization": []
}
],
"description": "create a dad joke",
"consumes": [
"application/json"
@@ -161,6 +176,11 @@ const docTemplate = `{
},
"/openai/general": {
"get": {
"security": [
{
"Authorization": []
}
],
"description": "Ask ChatGPT a general question",
"consumes": [
"application/json"
@@ -199,6 +219,11 @@ const docTemplate = `{
},
"/openai/travelagent": {
"get": {
"security": [
{
"Authorization": []
}
],
"description": "Ask ChatGPT for suggestions as if it was a travel agent",
"consumes": [
"application/json"

View File

@@ -52,6 +52,11 @@
},
"/jokes/dadjoke": {
"get": {
"security": [
{
"Authorization": []
}
],
"description": "get a dad joke",
"consumes": [
"application/json"
@@ -79,6 +84,11 @@
}
},
"post": {
"security": [
{
"Authorization": []
}
],
"description": "create a dad joke",
"consumes": [
"application/json"
@@ -115,6 +125,11 @@
}
},
"delete": {
"security": [
{
"Authorization": []
}
],
"description": "create a dad joke",
"consumes": [
"application/json"
@@ -153,6 +168,11 @@
},
"/openai/general": {
"get": {
"security": [
{
"Authorization": []
}
],
"description": "Ask ChatGPT a general question",
"consumes": [
"application/json"
@@ -191,6 +211,11 @@
},
"/openai/travelagent": {
"get": {
"security": [
{
"Authorization": []
}
],
"description": "Ask ChatGPT for suggestions as if it was a travel agent",
"consumes": [
"application/json"

View File

@@ -61,6 +61,8 @@ paths:
description: error
schema:
$ref: '#/definitions/model.Message'
security:
- Authorization: []
summary: Generate dadjoke
tags:
- DadJoke
@@ -79,6 +81,8 @@ paths:
description: error
schema:
$ref: '#/definitions/model.Message'
security:
- Authorization: []
summary: Get dadjoke
tags:
- DadJoke
@@ -103,6 +107,8 @@ paths:
description: error
schema:
$ref: '#/definitions/model.Message'
security:
- Authorization: []
summary: Generate dadjoke
tags:
- DadJoke
@@ -128,6 +134,8 @@ paths:
description: error
schema:
$ref: '#/definitions/model.Message'
security:
- Authorization: []
summary: Gerneral ChatGPT
tags:
- openai
@@ -153,6 +161,8 @@ paths:
description: error
schema:
$ref: '#/definitions/model.Message'
security:
- Authorization: []
summary: Travel Agent ChatGPT
tags:
- openai