{
  "openapi": "3.1.0",
  "info": {
    "title": "Andy Rosic public API",
    "version": "1.0.0",
    "description": "Read-only access to the public content of andyrosic.com: case studies, services, open-source work, and contact details. No auth."
  },
  "servers": [
    {
      "url": "https://andyrosic.com"
    }
  ],
  "paths": {
    "/api/v1/projects": {
      "get": {
        "operationId": "listProjects",
        "summary": "List case studies",
        "responses": {
          "200": {
            "description": "Case studies",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "slug": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "kind": {
                        "type": "string"
                      },
                      "outcome": {
                        "type": "string"
                      },
                      "problem": {
                        "type": "string"
                      },
                      "built": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "decision": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string"
                          },
                          "body": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "title",
                          "body"
                        ]
                      },
                      "stack": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "receipt": {
                        "type": "string"
                      },
                      "url": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "caseStudy": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "slug",
                      "name",
                      "kind",
                      "outcome",
                      "caseStudy"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/projects/{slug}": {
      "get": {
        "operationId": "getProject",
        "summary": "Get one case study",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "super-mega-mind",
                "jantzen-fuel-depot",
                "rosicodex",
                "juryboard"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Case study",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "slug": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "outcome": {
                      "type": "string"
                    },
                    "problem": {
                      "type": "string"
                    },
                    "built": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "decision": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "body"
                      ]
                    },
                    "stack": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "receipt": {
                      "type": "string"
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "caseStudy": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "name",
                    "kind",
                    "outcome",
                    "caseStudy"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "No case study with that slug"
          }
        }
      }
    },
    "/api/v1/services": {
      "get": {
        "operationId": "listServices",
        "summary": "List consulting services",
        "responses": {
          "200": {
            "description": "Services",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "promise": {
                        "type": "string"
                      },
                      "body": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/open-source": {
      "get": {
        "operationId": "listOpenSource",
        "summary": "List open-source projects",
        "responses": {
          "200": {
            "description": "Repositories",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "demo": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "url"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contact": {
      "get": {
        "operationId": "getContact",
        "summary": "How to reach Andy and book a call",
        "responses": {
          "200": {
            "description": "Contact",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "booking": {
                      "type": "string"
                    },
                    "linkedin": {
                      "type": "string"
                    },
                    "github": {
                      "type": "string"
                    },
                    "site": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "email",
                    "booking"
                  ]
                }
              }
            }
          }
        }
      }
    }
  }
}