added jsdoc definitions to apis
This commit is contained in:
@@ -1,7 +1,55 @@
|
||||
/**
|
||||
* @swagger
|
||||
* /api/endpoint/getbasicsearchpaged_api:
|
||||
* get:
|
||||
* tags: [Search]
|
||||
* description: Basic search paged
|
||||
* parameters:
|
||||
* - name: searchString
|
||||
* in: query
|
||||
* required: true
|
||||
* example: cas-
|
||||
* schema:
|
||||
* type: string
|
||||
* - name: pageNumber
|
||||
* in: query
|
||||
* required: true
|
||||
* example: 2
|
||||
* schema:
|
||||
* type: string
|
||||
* - name: orderby
|
||||
* in: query
|
||||
* required: true
|
||||
* example: createdon
|
||||
* schema:
|
||||
* type: string
|
||||
* - name: fieldSort
|
||||
* in: query
|
||||
* required: true
|
||||
* description: asc or desc
|
||||
* example: asc
|
||||
* schema:
|
||||
* type: string
|
||||
* - name: showNumberOfRecords
|
||||
* in: query
|
||||
* required: true
|
||||
* description: number of records to return per page
|
||||
* example: 10
|
||||
* schema:
|
||||
* type: string
|
||||
* responses:
|
||||
* 200:
|
||||
* description: Success
|
||||
*/
|
||||
|
||||
import axios from "axios";
|
||||
import CryptoJS from "crypto-js";
|
||||
import _ from "lodash";
|
||||
import { getToken, azureHeadersPagedCustom } from "../../../actions";
|
||||
import {
|
||||
getToken,
|
||||
azureHeadersPagedCustom,
|
||||
consoleLogger,
|
||||
} from "../../../actions";
|
||||
|
||||
const WORDKEY = process.env.HASHKEY;
|
||||
|
||||
@@ -42,7 +90,7 @@ export default async function ApiProxy(req, res) {
|
||||
? "&$skiptoken=" + '<cookie pagenumber="' + pageNumber + '" />'
|
||||
: "");
|
||||
|
||||
//console.log("basic search paged:", queryUrl);
|
||||
console.log("basic search paged:", queryUrl);
|
||||
|
||||
var apiResponse =
|
||||
searchString.length > 0
|
||||
|
||||
Reference in New Issue
Block a user