JOB SEARCH

JOB SEARCH · Acciones GPT

Job Search/Recommendation API

Access to various job postings.

  • GET /Welcome message
  • GET /job/{query}Search jobs
  • GET /ai-pluginGet AI Plugin JSON
  • GET /openapiGet OpenAPI YAML
  • GET /privacy-policyGet Privacy Policy JSON
Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Job Search/Recommendation API",
    "description": "Access to various job postings.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://job-search.replit.app",
      "description": "Job Search API Server"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "summary": "Welcome message",
        "operationId": "getIndex",
        "responses": {
          "200": {
            "description": "A welcome message",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "example": "Hello world! welcome to job search/recommendation!"
                }
              }
            }
          }
        }
      }
    },
    "/job/{query}": {
      "get": {
        "operationId": "searchJobs",
        "summary": "Search jobs",
        "parameters": [
          {
            "name": "query",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The job search query. Example, \"Find me devops jobs in apple.\""
          }
        ],
        "responses": {
          "200": {
            "description": "A list of job search results",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Job"
                  },
                  "example": [
                    {
                      "id": "200531160",
                      "title": "DevOps Engineer, PLM",
                      "company": "apple",
                      "url": "https://jobs.apple.com/en-in/details/200531160"
                    },
                    {
                      "id": "200531160",
                      "title": "DevOps Engineer, PLM",
                      "company": "apple",
                      "url": "https://jobs.apple.com/en-in/details/200531160"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/ai-plugin": {
      "get": {
        "summary": "Get AI Plugin JSON",
        "operationId": "getAiPlugin",
        "responses": {
          "200": {
            "description": "AI Plugin JSON file",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "api_key": []
          }
        ]
      }
    },
    "/openapi": {
      "get": {
        "summary": "Get OpenAPI YAML",
        "operationId": "getOpenApi",
        "responses": {
          "200": {
            "description": "OpenAPI YAML file",
            "content": {
              "text/yaml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "api_key": []
          }
        ]
      }
    },
    "/privacy-policy": {
      "get": {
        "summary": "Get Privacy Policy JSON",
        "operationId": "getPrivacyPolicy",
        "responses": {
          "200": {
            "description": "Privacy Policy JSON file",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    },
    "schemas": {
      "Job": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the job",
            "example": "200531160"
          },
          "title": {
            "type": "string",
            "description": "Title of the job position",
            "example": "DevOps Engineer, PLM"
          },
          "company": {
            "type": "string",
            "description": "Name of the company offering the job",
            "example": "apple"
          },
          "url": {
            "type": "string",
            "description": "URL link to the job details",
            "example": "https://jobs.apple.com/en-in/details/200531160"
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "detail": {
            "type": "string"
          }
        }
      }
    }
  }
}