{
  "openapi": "3.1.0",
  "info": {
    "title": "screeen.us.ci API",
    "version": "1.0.0",
    "description": "Read-only API for Screen, product developer and video editor. Covers profile data, portfolio projects and blog posts with no authentication and a limit of 60 requests per minute reported in RateLimit-* headers.",
    "contact": {
      "name": "Screen",
      "url": "https://screeen.us.ci/contact",
      "email": "contact@screeen.us.ci"
    },
    "license": {
      "name": "CC0",
      "url": "https://creativecommons.org/publicdomain/zero/1.0/"
    }
  },
  "servers": [
    {
      "url": "https://screeen.us.ci"
    }
  ],
  "paths": {
    "/api/profile": {
      "get": {
        "operationId": "getProfile",
        "summary": "Get Screen profile",
        "description": "Identity, work history, availability and contact details for Screen.",
        "responses": {
          "200": {
            "description": "The profile record",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "hint"
                      ],
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "Machine-readable error code"
                        },
                        "message": {
                          "type": "string",
                          "description": "What went wrong"
                        },
                        "hint": {
                          "type": "string",
                          "description": "How to resolve the error"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited. See Retry-After and RateLimit-* headers.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "hint"
                      ],
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "Machine-readable error code"
                        },
                        "message": {
                          "type": "string",
                          "description": "What went wrong"
                        },
                        "hint": {
                          "type": "string",
                          "description": "How to resolve the error"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/projects": {
      "get": {
        "operationId": "listProjects",
        "summary": "List portfolio projects",
        "description": "All shipped projects with name, category, description, links and feature list.",
        "responses": {
          "200": {
            "description": "Array of projects",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "category",
                      "description",
                      "url"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "source": {
                        "type": "string",
                        "format": "uri"
                      },
                      "page": {
                        "type": "string",
                        "format": "uri"
                      },
                      "about": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "hint"
                      ],
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "Machine-readable error code"
                        },
                        "message": {
                          "type": "string",
                          "description": "What went wrong"
                        },
                        "hint": {
                          "type": "string",
                          "description": "How to resolve the error"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited. See Retry-After and RateLimit-* headers.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "hint"
                      ],
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "Machine-readable error code"
                        },
                        "message": {
                          "type": "string",
                          "description": "What went wrong"
                        },
                        "hint": {
                          "type": "string",
                          "description": "How to resolve the error"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/projects/{id}": {
      "get": {
        "operationId": "getProject",
        "summary": "Get one project",
        "description": "Full details for one project by id.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Project id: col, astro-dither, emc2 or screen-time",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The project record",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "hint"
                      ],
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "Machine-readable error code"
                        },
                        "message": {
                          "type": "string",
                          "description": "What went wrong"
                        },
                        "hint": {
                          "type": "string",
                          "description": "How to resolve the error"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited. See Retry-After and RateLimit-* headers.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "hint"
                      ],
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "Machine-readable error code"
                        },
                        "message": {
                          "type": "string",
                          "description": "What went wrong"
                        },
                        "hint": {
                          "type": "string",
                          "description": "How to resolve the error"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/posts": {
      "get": {
        "operationId": "listPosts",
        "summary": "List blog posts",
        "description": "Published blog posts with slug, title, summary, url and date.",
        "responses": {
          "200": {
            "description": "Array of posts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "slug",
                      "title",
                      "summary",
                      "url"
                    ],
                    "properties": {
                      "slug": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "summary": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "date": {
                        "type": "string",
                        "format": "date"
                      },
                      "category": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "hint"
                      ],
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "Machine-readable error code"
                        },
                        "message": {
                          "type": "string",
                          "description": "What went wrong"
                        },
                        "hint": {
                          "type": "string",
                          "description": "How to resolve the error"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited. See Retry-After and RateLimit-* headers.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "hint"
                      ],
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "Machine-readable error code"
                        },
                        "message": {
                          "type": "string",
                          "description": "What went wrong"
                        },
                        "hint": {
                          "type": "string",
                          "description": "How to resolve the error"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
