added swagger

This commit is contained in:
2023-03-01 15:47:55 +00:00
parent c38d67a37f
commit d8f0972170
12 changed files with 186 additions and 10 deletions
+23
View File
@@ -1,3 +1,26 @@
/**
* @swagger
* /api/documents/download/{id}:
* get:
* tags:
* - Documents
* description: Get document
* parameters:
* - name: id
* in: path
* description: iShare ID
* type: string
* required: true
* default: A21852159
* - name: hash
* in: query
* description: Hashe stirng
* default: 25d7ae78acb551d9e051b98fc425ebee9b201ba203afe4fc9d330e2b7895e072
* responses:
* 200:
* description: Success
*/
import axios from "axios";
import CryptoJS from "crypto-js";
import { getToken, consoleLogger } from "../../../../actions";