diff --git a/README.md b/README.md index fbbab75..70b2826 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,5 @@ This project stores [Plugins](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web ## Plugins - [WolframAlpha plugin](./plugins/wolframalpha) +- [ArxivSearch](./plugins/arxivsearch) diff --git a/plugins/arxivsearch/README.md b/plugins/arxivsearch/README.md new file mode 100644 index 0000000..6ced69e --- /dev/null +++ b/plugins/arxivsearch/README.md @@ -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) + + diff --git a/plugins/arxivsearch/authentication.png b/plugins/arxivsearch/authentication.png new file mode 100644 index 0000000..65b608a Binary files /dev/null and b/plugins/arxivsearch/authentication.png differ diff --git a/plugins/arxivsearch/openapi.json b/plugins/arxivsearch/openapi.json new file mode 100644 index 0000000..efc8f39 --- /dev/null +++ b/plugins/arxivsearch/openapi.json @@ -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": {} + } +} diff --git a/plugins/arxivsearch/preview.png b/plugins/arxivsearch/preview.png new file mode 100644 index 0000000..45950a1 Binary files /dev/null and b/plugins/arxivsearch/preview.png differ