Skip to content

Commit

Permalink
Add tags on new endpoints + add required fields on context (#9004)
Browse files Browse the repository at this point in the history
* Update tags docs

* Make context required
  • Loading branch information
albandum authored Nov 28, 2024
1 parent 149b1a3 commit 8555f22
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { apiError } from "@app/logger/withlogging";
* @swagger
* /api/v1/w/{wId}/assistant/conversations/{cId}/cancel:
* post:
* tags:
* - Conversations
* summary: Cancel message generation in a conversation
* parameters:
* - name: wId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { apiError } from "@app/logger/withlogging";
* @swagger
* /api/v1/w/{wId}/assistant/conversations/{cId}/messages/{mId}/edit:
* post:
* tags:
* - Conversations
* summary: Edit an existing message in a conversation
* parameters:
* - name: wId
Expand Down
2 changes: 2 additions & 0 deletions front/pages/api/v1/w/[wId]/files/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import { apiError } from "@app/logger/withlogging";
* @swagger
* /api/v1/w/{wId}/files:
* post:
* tags:
* - Datasources
* summary: Create a file upload URL
* parameters:
* - name: wId
Expand Down
7 changes: 7 additions & 0 deletions front/pages/api/v1/w/[wId]/swagger_schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@
* example: "openai"
* Context:
* type: object
* required:
* - username
* - timezone
* - fullName
* - email
* - profilePictureUrl
* - origin
* properties:
* username:
* type: string
Expand Down
17 changes: 17 additions & 0 deletions front/public/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@
},
"/api/v1/w/{wId}/assistant/conversations/{cId}/cancel": {
"post": {
"tags": [
"Conversations"
],
"summary": "Cancel message generation in a conversation",
"parameters": [
{
Expand Down Expand Up @@ -560,6 +563,9 @@
},
"/api/v1/w/{wId}/assistant/conversations/{cId}/messages/{mId}/edit": {
"post": {
"tags": [
"Conversations"
],
"summary": "Edit an existing message in a conversation",
"parameters": [
{
Expand Down Expand Up @@ -912,6 +918,9 @@
},
"/api/v1/w/{wId}/files": {
"post": {
"tags": [
"Datasources"
],
"summary": "Create a file upload URL",
"parameters": [
{
Expand Down Expand Up @@ -3519,6 +3528,14 @@
},
"Context": {
"type": "object",
"required": [
"username",
"timezone",
"fullName",
"email",
"profilePictureUrl",
"origin"
],
"properties": {
"username": {
"type": "string",
Expand Down

0 comments on commit 8555f22

Please sign in to comment.