Unizar Academic Explorer

Unizar Academic Explorer · Acciones GPT

FastAPI

  • GET /kwApi/pingCheck Server
  • POST /kwApi/keywordlistRead Keywords for an author or a set of authors, via post
  • GET /kwApi/{table}/suggestKeyword/{keyw}Suggest Keywords similar to other keyword
  • POST /kwApi/authorlistRead Authors Ids for a keyword or array of kw, via Post
Esquema original API
{
  "openapi": "3.0.2",
  "servers": [
    {
      "url": "https://grupos.kampal.com/"
    }
  ],
  "info": {
    "title": "FastAPI",
    "version": "0.1.0"
  },
  "paths": {
    "/kwApi/ping": {
      "get": {
        "summary": "Check Server",
        "operationId": "check_server_ping",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/kwApi/keywordlist": {
      "post": {
        "summary": "Read Keywords for an author or a set of authors, via post",
        "operationId": "keywordlist_for_nip",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ByAuthRq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/kwApi/{table}/suggestKeyword/{keyw}": {
      "get": {
        "summary": "Suggest Keywords similar to other keyword",
        "operationId": "suggestKeyword",
        "parameters": [
          {
            "required": true,
            "schema": {
              "title": "Keyword",
              "type": "string"
            },
            "name": "keyw",
            "in": "path"
          },
          {
            "required": true,
            "schema": {
              "title": "Table",
              "type": "string"
            },
            "name": "table",
            "default": "unizarNIPNew-WithKeys",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/kwApi/authorlist": {
      "post": {
        "summary": "Read Authors Ids for a keyword or array of kw, via Post",
        "operationId": "author_nip_for_kw",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ByKwRq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ByAuthRq": {
        "title": "ByAuthRq",
        "required": [
          "autores",
          "table"
        ],
        "type": "object",
        "properties": {
          "table": {
            "title": "Table",
            "type": "string",
            "default": "unizarNIP"
          },
          "autores": {
            "title": "Autores",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "joinType": {
            "title": "Jointype",
            "type": "string",
            "default": "union"
          }
        }
      },
      "ByKwRq": {
        "title": "ByKwRq",
        "required": [
          "keywords",
          "filter",
          "verbose",
          "table"
        ],
        "type": "object",
        "properties": {
          "table": {
            "title": "Table",
            "type": "string",
            "default": "unizarNIPNew-WithKeys"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          "must": {
            "title": "Must",
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "superKeywords": {
            "title": "Superkeywords",
            "type": "boolean",
            "default": true
          },
          "verbose": {
            "title": "Verbose",
            "type": "boolean",
            "default": false
          },
          "From": {
            "title": "Year From",
            "type": "integer",
            "default": 2000
          },
          "To": {
            "title": "Year To",
            "type": "integer",
            "default": 2025
          },
          "filter": {
            "title": "Filter",
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "default": [
              [
                "AyH",
                "CdlS",
                "Cie",
                "CSyJ",
                "IyA"
              ],
              [
                "PRO",
                "ART"
              ]
            ]
          }
        }
      }
    }
  }
}