langchain/tests/unit_tests/tools/openapi/test_specs/biztoc/apispec.json
Harrison Chase 26314d7004
Harrison/openapi parser (#2461)
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com>
2023-04-05 22:19:09 -07:00

36 lines
975 B
JSON

{
"openapi": "3.0.1",
"info": {
"title": "BizToc",
"description": "Get the latest business news articles.",
"version": "v1"
},
"servers": [
{
"url": "https://ai.biztoc.com"
}
],
"paths": {
"/ai/news": {
"get": {
"operationId": "getNews",
"summary": "Retrieves the latest news whose content contains the query string.",
"parameters": [
{
"in": "query",
"name": "query",
"schema": {
"type": "string"
},
"description": "Used to query news articles on their title and body. For example, ?query=apple will return news stories that have 'apple' in their title or body."
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
}
}
}