{
  "openapi": "3.0.0",
  "paths": {
    "/health": {
      "get": {
        "operationId": "health_get",
        "summary": "Server Health",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseGetHealth"
                }
              }
            }
          }
        }
      }
    },
    "/portfolio": {
      "get": {
        "operationId": "portfolio_get",
        "summary": "Portfolio Items",
        "description": "My portfolio includes some of the projects I've worked on",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseGetPortfolio"
                }
              }
            }
          }
        }
      }
    },
    "/technologies": {
      "get": {
        "operationId": "technologies_get",
        "summary": "Technologies",
        "description": "Some of the technologies I work with",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseGetTechnologies"
                }
              }
            }
          }
        }
      }
    },
    "/services": {
      "get": {
        "operationId": "services_get",
        "summary": "Services",
        "description": "Services I offer",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseGetServices"
                }
              }
            }
          }
        }
      }
    },
    "/curation": {
      "get": {
        "operationId": "curation_get",
        "summary": "Curated portfolio",
        "description": "A portfolio curation for specific clients, containing only relevant data",
        "parameters": [
          {
            "in": "query",
            "name": "t",
            "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjIjoib3Blbi1hcGktZG9jdW1lbnRhdGlvbiIsIm4iOiJPcGVuQVBJIERvY3VtZW50YXRpb24iLCJ0IjpbInJ1Ynktb24tcmFpbHMiLCJyZXN0LWFwaXMtZ3JhcGhxbC1zZGtzIiwiZ28tbGFuZyIsImtvdGxpbi1qYXZhIiwibmV4dGpzIiwibm9kZWpzIiwic3FsIiwiY2ktY2QiXX0.-U6kEzAlUp2BeBOCWVsnkfFxVRJ9KHvzExxPwXBU59w",
            "required": true,
            "description": "A JWT token generated by [portfolio-cli](https://github.com/tinacious/portfolio-cli)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseGetCuration"
                }
              }
            }
          }
        }
      }
    },
    "/testimonials": {
      "get": {
        "operationId": "testimonials_get",
        "summary": "Testimonials",
        "description": "Some nice things that clients and colleagues have said about me",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseGetTestimonials"
                }
              }
            }
          }
        }
      }
    }
  },
  "info": {
    "title": "Tinacious Design API",
    "description": "💁🏻‍♀️ Tinacious Design: \"tenacious\" with a Tina! Documentation for internal APIs for Tina Holly's website, Tinacious Design",
    "version": "0.0.1",
    "contact": {
      "name": "Tinacious Design",
      "url": "https://tinaciousdesign.com/contact",
      "email": "info@tinaciousdesign.com"
    }
  },
  "servers": [
    {
      "description": "Production",
      "url": "https://tinaciousdesign.com/api"
    },
    {
      "description": "Local development",
      "url": "http://localhost:7777/api"
    }
  ],
  "components": {
    "schemas": {
      "ResponseGetHealth": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "object",
            "required": ["version", "openapi"],
            "properties": {
              "version": {
                "type": "string",
                "example": "7ca91a975bfb85b940a290cd3116330ef9fbe6a9"
              },
              "openapi": {
                "type": "string",
                "example": "https://tinaciousdesign.com/openapi.json"
              }
            }
          }
        }
      },
      "ResponseGetPortfolio": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PortfolioItem"
            }
          }
        }
      },
      "ResponseGetServices": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServiceItem"
            }
          }
        }
      },
      "ResponseGetTechnologies": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Technology"
            }
          }
        }
      },
      "ResponseGetTestimonials": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Testimonial"
            }
          }
        }
      },
      "ResponseGetCuration": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "object",
            "required": ["id", "client", "technologies", "portfolio"],
            "properties": {
              "id": {
                "type": "string",
                "description": "Unique identifier",
                "example": "open-api-documentation"
              },
              "client": {
                "type": "string",
                "description": "Display name of the client",
                "example": "OpenAPI Documentation"
              },
              "technologies": {
                "type": "array",
                "description": "Technologies included in this curation",
                "items": {
                  "$ref": "#/components/schemas/Technology"
                }
              },
              "portfolio": {
                "type": "array",
                "description": "Portfolio items included in this curation",
                "items": {
                  "$ref": "#/components/schemas/PortfolioItem"
                }
              }
            }
          }
        }
      },
      "Technology": {
        "type": "object",
        "required": [
          "id",
          "title",
          "slug",
          "isFeatured",
          "dateStarted",
          "body"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "",
            "example": "BIe5HX70SbCdP-6YuCQ8cw"
          },
          "title": {
            "type": "string",
            "description": "",
            "example": "Go lang"
          },
          "slug": {
            "type": "string",
            "description": "Unique identifier",
            "example": "go-lang"
          },
          "dateStarted": {
            "type": "string",
            "description": "Date in YYYY-MM-DD format",
            "example": "2023-03-03"
          },
          "isFeatured": {
            "type": "boolean"
          },
          "body": {
            "type": "string",
            "description": "HTML content"
          }
        }
      },
      "ServiceItem": {
        "type": "object",
        "required": ["id", "title", "slug", "excerpt", "body", "technologies"],
        "properties": {
          "id": {
            "type": "string",
            "description": "",
            "example": "BIe5HX70SbCdP-6YuCQ8cw"
          },
          "title": {
            "type": "string",
            "description": "",
            "example": "Front-end Development"
          },
          "slug": {
            "type": "string",
            "description": "Unique identifier",
            "example": "front-end-development"
          },
          "excerpt": {
            "type": "string",
            "description": "HTML content: The excerpt, useful for SEO metadata or a summary on index pages",
            "example": "front-end-development"
          },
          "body": {
            "type": "string",
            "description": "HTML content"
          },
          "technologies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Technology"
            }
          }
        }
      },
      "PortfolioItem": {
        "type": "object",
        "required": [
          "id",
          "title",
          "slug",
          "launchDate",
          "showLaunchDate",
          "isFeatured",
          "featuredImage",
          "images",
          "categories",
          "website",
          "excerptHtml",
          "contentHtml"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "",
            "example": "Figma plugin for generating colour palettes and shades"
          },
          "slug": {
            "type": "string",
            "description": "Unique identifier that maps to the page's path",
            "example": "figma-plugin-colour-tools"
          },
          "launchDate": {
            "type": "string",
            "description": "",
            "example": "2024-09-24"
          },
          "showLaunchDate": {
            "type": "boolean",
            "description": "",
            "example": true
          },
          "isFeatured": {
            "type": "boolean",
            "description": "If this is a featured portfolio item, e.g. to highlight on the home page",
            "example": true
          },
          "featuredImage": {
            "nullable": true,
            "allOf": [{ "$ref": "#/components/schemas/Image" }]
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Image"
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category"
            }
          },
          "website": {
            "type": "string",
            "description": "External link to the project",
            "example": "https://tinaciousdesign.com/portfolio/figma-plugin-colour-tools"
          },
          "contentHtml": {
            "type": "string",
            "description": "The main page content HTML"
          },
          "excerptHtml": {
            "type": "string",
            "description": "HTML content: The excerpt, useful for SEO metadata or a summary on index pages"
          }
        }
      },
      "Testimonial": {
        "type": "object",
        "description": "Some nice things that clients and colleagues have said about me",
        "required": ["id", "author", "body", "relatedProjects", "image"],
        "properties": {
          "id": {
            "type": "string",
            "example": "LsNkE2G7TjmlXzsxh8Qukw"
          },
          "author": {
            "type": "string",
            "description": "The individual that said the nice thing",
            "example": "Henry"
          },
          "body": {
            "type": "string",
            "description": "HTML content",
            "example": "<p>Tina is a brilliant software engineer. I worked with Tina on building KINO's MVP Android app (a video streaming + social media app) during spring 2024, and I cannot wait to work with her again.</p>"
          },
          "relatedProjects": {
            "type": "array",
            "description": "A list of related [PortfolioItem](#model-PortfolioItem) records",
            "items": {
              "$ref": "#/components/schemas/RelatedProject"
            }
          },
          "image": {
            "type": "object",
            "nullable": true,
            "description": "Profile image of the individual",
            "properties": {
              "url": {
                "type": "string",
                "example": "https://www.datocms-assets.com/31032/1718386808-henry-f6583eddd617430d8bb298fcdf959bc1-edited.png"
              }
            }
          }
        }
      },
      "RelatedProject": {
        "type": "object",
        "description": "A thinner [PortfolioItem](#model-PortfolioItem) that contains only relevant data for linking to",
        "required": ["title", "slug"],
        "properties": {
          "title": {
            "type": "string",
            "description": "Portfolio item title",
            "example": "Next great storytelling medium on Android"
          },
          "slug": {
            "type": "string",
            "description": "Unique identifier",
            "example": "storytelling-medium-kino-technologies-android"
          }
        }
      },
      "Category": {
        "type": "object",
        "description": "",
        "required": ["name", "slug"],
        "properties": {
          "name": {
            "type": "string",
            "description": "Category name",
            "example": "Front-end Development"
          },
          "slug": {
            "type": "string",
            "description": "Unique identifier",
            "example": "front-end-development"
          }
        }
      },
      "Image": {
        "type": "object",
        "description": "",
        "required": ["altText", "title", "url"],
        "properties": {
          "altText": {
            "type": "string",
            "description": "Image alt text. Can be mapped to the image element's alt attribute",
            "example": "Screenshot of something amazing"
          },
          "title": {
            "type": "string",
            "description": "Image title text. Can be mapped to caption text",
            "example": "This amazing UI allows you to do amazing things"
          },
          "url": {
            "type": "string",
            "description": "Image URL",
            "example": "https://tinaciousdesign.com/images/path-to-awesomeness.png"
          }
        }
      }
    }
  }
}
