{
  "openapi": "3.1.0",
  "info": {
    "title": "Efazi Catalog",
    "version": "1.0.0",
    "description": "Search public Efazi services, jobs and software with no account or API key."
  },
  "servers": [
    {
      "url": "https://efazi.com"
    }
  ],
  "paths": {
    "/agent-api/v1/catalog/{kind}": {
      "get": {
        "operationId": "searchCatalog",
        "summary": "Find marketplace listings",
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "service",
                "job",
                "software"
              ]
            },
            "description": "Listing type"
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Words in the listing title"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10,
              "default": 5
            },
            "description": "Maximum results"
          },
          {
            "name": "min",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 100000000
            },
            "description": "min listing price"
          },
          {
            "name": "max",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 100000000
            },
            "description": "max listing price"
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Successful request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer"
                      },
                      "name": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string"
                      },
                      "seller": {
                        "type": "string"
                      },
                      "price_from": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request rejected. See the error and status code."
          }
        }
      }
    },
    "/agent-api/v1/catalog/{kind}/{id}": {
      "get": {
        "operationId": "getListing",
        "summary": "Read a marketplace listing",
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "service",
                "job",
                "software"
              ]
            },
            "description": "Listing type"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Numeric record ID"
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Successful request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "category": {
                      "type": "string"
                    },
                    "seller": {
                      "type": "string"
                    },
                    "price_from": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "description": {
                      "type": "string"
                    },
                    "delivery_days": {
                      "type": "integer"
                    },
                    "extras": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "price": {}
                        }
                      }
                    },
                    "review_count": {
                      "type": "integer"
                    },
                    "seller_payment_blocked": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Request rejected. See the error and status code."
          }
        }
      }
    }
  }
}