Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 4XX descriptions for the following resources #84

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 44 additions & 2 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,12 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ApiResponse"
'400':
description: Bad request, see error message for details
content:
application/json:
schema:
$ref: "#/components/schemas/ApiResponse"
/collections/{collectionName}/documents/search:
get:
tags:
Expand Down Expand Up @@ -434,6 +440,12 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/SearchOverridesResponse"
'404':
description: List of search overrides not found
content:
application/json:
schema:
$ref: "#/components/schemas/ApiResponse"
/collections/{collectionName}/overrides/{overrideId}:
get:
tags:
Expand Down Expand Up @@ -462,6 +474,12 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/SearchOverride"
'404':
description: Search override not found
content:
application/json:
schema:
$ref: "#/components/schemas/ApiResponse"
put:
tags:
- documents
Expand Down Expand Up @@ -792,7 +810,7 @@ paths:
get:
tags:
- documents
summary: Retreive a document
summary: Retrieve a document
description: Fetch an individual document from a collection by using its ID.
operationId: getDocument
parameters:
Expand Down Expand Up @@ -963,6 +981,12 @@ paths:
schema:
$ref: '#/components/schemas/ConversationModelSchema'
description: A conversation model
'404':
description: Model not found
content:
application/json:
schema:
$ref: "#/components/schemas/ApiResponse"
summary: Retrieve a conversation model
tags:
- conversations
Expand All @@ -989,6 +1013,12 @@ paths:
schema:
$ref: '#/components/schemas/ConversationModelSchema'
description: The conversation model was successfully updated
'404':
description: Model not found
content:
application/json:
schema:
$ref: "#/components/schemas/ApiResponse"
summary: Update a conversation model
tags:
- conversations
Expand All @@ -1009,6 +1039,12 @@ paths:
schema:
$ref: '#/components/schemas/ConversationModelSchema'
description: The conversation model was successfully deleted
'404':
description: Model not found
content:
application/json:
schema:
$ref: "#/components/schemas/ApiResponse"
summary: Delete a conversation model
tags:
- conversations
Expand Down Expand Up @@ -1392,6 +1428,12 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ApiResponse"
'404':
description: Collection or field missing
content:
application/json:
schema:
$ref: "#/components/schemas/ApiResponse"
get:
tags:
- analytics
Expand Down Expand Up @@ -3575,4 +3617,4 @@ components:
api_key_header:
type: apiKey
name: X-TYPESENSE-API-KEY
in: header
in: header