LöplabbetGPT
LöplabbetGPT · GPT-Aktionen
GPT content and product retrieval API
An API that retrieves relevant documents for a given query.
POST /loplabbet_retrieveRetrieve documents about running shoes products from LöplabbetRetrieves documents relevant to the given query.
GET /openapi.yamlOpenAPI SpecificationReturns the OpenAPI specification for this API.
Ursprüngliches API-Schema
{
"openapi": "3.0.0",
"info": {
"title": "GPT content and product retrieval API",
"description": "An API that retrieves relevant documents for a given query.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://gpt-plugin-api-f580f0e41341.herokuapp.com"
}
],
"paths": {
"/loplabbet_retrieve": {
"post": {
"operationId": "loplabbet_post_retrieve",
"summary": "Retrieve documents about running shoes products from Löplabbet",
"description": "Retrieves documents relevant to the given query.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query string to retrieve relevant documents for."
}
}
}
}
}
},
"responses": {
"200": {
"description": "A list of relevant documents",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"page_content": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"produktnavn": {
"type": "string"
},
"ratings_Stabilitet": {
"type": "string"
},
"ratings_Demping": {
"type": "string"
},
"ratings_Løpsfølelse": {
"type": "string"
},
"sex": {
"type": "string"
},
"category": {
"type": "string"
},
"rank": {
"type": "integer"
}
}
}
}
}
}
}
}
},
"400": {
"description": "Bad request"
}
}
}
},
"/openapi.yaml": {
"get": {
"operationId": "getOpenAPI",
"summary": "OpenAPI Specification",
"description": "Returns the OpenAPI specification for this API.",
"responses": {
"200": {
"description": "OpenAPI specification in YAML format",
"content": {
"text/yaml": {
"schema": {
"type": "string"
}
}
}
},
"400": {
"description": "Bad request"
}
}
}
}
}
}