apispec.json — langchain Source File
Architecture documentation for apispec.json, a json file in the langchain codebase.
Entity Profile
Source Code
{
"openapi": "3.0.1",
"info": {
"title": "Shop",
"description": "Search for millions of products from the world's greatest brands.",
"version": "v1"
},
"servers": [
{
"url": "https://server.shop.app"
}
],
"paths": {
"/openai/search": {
"get": {
"operationId": "search",
"summary": "Search for products",
"parameters": [
{
"in": "query",
"name": "query",
"description": "Query string to search for items.",
"required": false,
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "price_min",
"description": "The minimum price to filter by.",
"required": false,
"schema": {
"type": "number"
}
},
{
"in": "query",
"name": "price_max",
"description": "The maximum price to filter by.",
"required": false,
"schema": {
"type": "number"
}
},
{
"in": "query",
"name": "similar_to_id",
"description": "A product id that you want to find similar products for. (Only include one)",
"required": false,
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "num_results",
"description": "How many results to return. Defaults to 5. It can be a number between 1 and 10.",
"required": false,
"schema": {
// ... (94 more lines)
Source
Frequently Asked Questions
What does apispec.json do?
apispec.json is a source file in the langchain codebase, written in json.
Where is apispec.json in the architecture?
apispec.json is located at libs/langchain/tests/unit_tests/examples/test_specs/shop/apispec.json (directory: libs/langchain/tests/unit_tests/examples/test_specs/shop).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free