{
  "openapi": "3.1.0",
  "info": {
    "title": "JumpScale public catalogue API",
    "version": "1.0.0",
    "description": "Read-only public metadata about JumpScale services, industries and owned platforms. No authentication is required. This API does not create projects, issue API keys or expose customer data.",
    "contact": {
      "name": "JumpScale",
      "email": "info@jumpscale.nl",
      "url": "https://jumpscale.nl/contact"
    }
  },
  "servers": [
    {
      "url": "https://jumpscale.nl",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Public catalogue",
      "description": "Unauthenticated, read-only discovery resources."
    }
  ],
  "paths": {
    "/api/index.json": {
      "get": {
        "operationId": "getApiIndex",
        "summary": "API index",
        "description": "Discover the public JumpScale machine-readable resources.",
        "tags": [
          "Public catalogue"
        ],
        "responses": {
          "200": {
            "description": "Successful public catalogue response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiIndex"
                }
              }
            }
          },
          "default": {
            "description": "Structured error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/services.json": {
      "get": {
        "operationId": "listServices",
        "summary": "Services API",
        "description": "List JumpScale AI solutions and their public detail pages.",
        "tags": [
          "Public catalogue"
        ],
        "responses": {
          "200": {
            "description": "Successful public catalogue response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceCatalogue"
                }
              }
            }
          },
          "default": {
            "description": "Structured error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/industries.json": {
      "get": {
        "operationId": "listIndustries",
        "summary": "Industries API",
        "description": "List the industries for which JumpScale publishes AI propositions.",
        "tags": [
          "Public catalogue"
        ],
        "responses": {
          "200": {
            "description": "Successful public catalogue response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndustryCatalogue"
                }
              }
            }
          },
          "default": {
            "description": "Structured error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/platforms.json": {
      "get": {
        "operationId": "listPlatforms",
        "summary": "Platforms API",
        "description": "List JumpScale-owned platforms and public cases.",
        "tags": [
          "Public catalogue"
        ],
        "responses": {
          "200": {
            "description": "Successful public catalogue response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformCatalogue"
                }
              }
            }
          },
          "default": {
            "description": "Structured error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Provider": {
        "type": "object",
        "required": [
          "@type",
          "name",
          "url"
        ],
        "properties": {
          "@type": {
            "type": "string",
            "const": "Organization"
          },
          "name": {
            "type": "string",
            "const": "JumpScale"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "ApiIndex": {
        "type": "object",
        "required": [
          "name",
          "description",
          "url",
          "languages",
          "contact",
          "endpoints",
          "counts"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "languages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "contact": {
            "type": "object",
            "required": [
              "email",
              "url"
            ],
            "properties": {
              "email": {
                "type": "string",
                "format": "email"
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "endpoints": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "format": "uri"
            }
          },
          "counts": {
            "type": "object",
            "required": [
              "services",
              "industries",
              "platforms"
            ],
            "properties": {
              "services": {
                "type": "integer",
                "minimum": 0
              },
              "industries": {
                "type": "integer",
                "minimum": 0
              },
              "platforms": {
                "type": "integer",
                "minimum": 0
              }
            }
          }
        }
      },
      "Service": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "category",
          "categoryLabel",
          "tagline",
          "intro",
          "bullets",
          "url"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "categoryLabel": {
            "type": "string"
          },
          "tagline": {
            "type": "string"
          },
          "intro": {
            "type": "string"
          },
          "bullets": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "ServiceCatalogue": {
        "type": "object",
        "required": [
          "@context",
          "provider",
          "type",
          "count",
          "services"
        ],
        "properties": {
          "@context": {
            "type": "string",
            "format": "uri",
            "example": "https://schema.org"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "type": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Service"
            }
          }
        }
      },
      "UseCase": {
        "type": "object",
        "required": [
          "name",
          "benefit"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "benefit": {
            "type": "string"
          }
        }
      },
      "Industry": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "valueProp",
          "intro",
          "pains",
          "useCases",
          "stat",
          "source",
          "sourceUrl",
          "url"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "valueProp": {
            "type": "string"
          },
          "intro": {
            "type": "string"
          },
          "pains": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "useCases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UseCase"
            }
          },
          "stat": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "sourceUrl": {
            "type": "string",
            "format": "uri"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "IndustryCatalogue": {
        "type": "object",
        "required": [
          "@context",
          "provider",
          "type",
          "count",
          "industries"
        ],
        "properties": {
          "@context": {
            "type": "string",
            "format": "uri",
            "example": "https://schema.org"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "type": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Industry"
            }
          }
        }
      },
      "Platform": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "url",
          "oneLiner",
          "body",
          "stat",
          "statLabel",
          "caseUrl"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "oneLiner": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "stat": {
            "type": "string"
          },
          "statLabel": {
            "type": "string"
          },
          "caseUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "PlatformCatalogue": {
        "type": "object",
        "required": [
          "@context",
          "provider",
          "type",
          "count",
          "platforms"
        ],
        "properties": {
          "@context": {
            "type": "string",
            "format": "uri",
            "example": "https://schema.org"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "type": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "platforms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Platform"
            }
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "resolution"
            ],
            "properties": {
              "code": {
                "type": "string",
                "example": "API_ROUTE_NOT_FOUND"
              },
              "message": {
                "type": "string"
              },
              "resolution": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}