add plugin ArxivSearch

This commit is contained in:
lloydzhou
2024-09-04 11:10:49 +08:00
parent f4909eef6d
commit b86e5833d6
5 changed files with 96 additions and 0 deletions

View File

@@ -5,4 +5,5 @@ This project stores [Plugins](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web
## Plugins
- [WolframAlpha plugin](./plugins/wolframalpha)
- [ArxivSearch](./plugins/arxivsearch)

View File

@@ -0,0 +1,27 @@
# arxiv search
> Run Arxiv search and get the article information.
## Schema
[openapi.json](./openapi.json)
## Servers
`https://export.arxiv.org`
## Operations
1. ArxivSearch
> `GET` /api/query?search_query=
## Authentication
type: none
![Authentication](./authentication.png)
## Preview
![Preview](./preview.png)

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -0,0 +1,68 @@
{
"openapi": "3.1.0",
"info": {
"title": "arxiv search",
"description": "Run Arxiv search and get the article information.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://export.arxiv.org"
}
],
"paths": {
"/api/query": {
"get": {
"operationId": "ArxivSearch",
"description": "Run Arxiv search and get the article information.",
"deprecated": false,
"parameters": [
{
"name": "search_query",
"in": "query",
"required": true,
"description": "same as the search_query parameter rules of the arxiv API.",
"schema": {
"type": "string"
}
},
{
"name": "sortBy",
"in": "query",
"description": "can be `relevance`, `lastUpdatedDate`, `submittedDate`.",
"schema": {
"type": "string"
}
},
{
"name": "sortOrder",
"in": "query",
"description": "can be either `ascending` or `descending`.",
"schema": {
"type": "string"
}
},
{
"name": "start",
"in": "query",
"description": "the index of the first returned result.",
"schema": {
"type": "number"
}
},
{
"name": "max_results",
"in": "query",
"description": "the number of results returned by the query.",
"schema": {
"type": "number"
}
}
]
}
}
},
"components": {
"schemas": {}
}
}

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB