Bonsai GPT

Bonsai GPT · Ações GPT

Bonsai Tonight Content API

API to access content from the Bonsai Tonight website.

  • GET /all-posts/Retrieve a list of all posts
  • GET /{year}/{month}/{day}/{post-title}/Retrieve details of a specific post
Esquema API original
{
  "openapi": "3.0.0",
  "info": {
    "title": "Bonsai Tonight Content API",
    "version": "1.0.0",
    "description": "API to access content from the Bonsai Tonight website."
  },
  "servers": [
    {
      "url": "https://chaction.csie.cool/https%3A%2F%2Fbonsaitonight.com/"
    }
  ],
  "paths": {
    "/all-posts/": {
      "get": {
        "summary": "Retrieve a list of all posts",
        "operationId": "listAllPosts",
        "responses": {
          "200": {
            "description": "A list of all posts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "content": {
                      "type": "string",
                      "description": "HTML content of the all posts page"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{year}/{month}/{day}/{post-title}/": {
      "get": {
        "summary": "Retrieve details of a specific post",
        "operationId": "getPostDetails",
        "parameters": [
          {
            "name": "year",
            "in": "path",
            "description": "Year of the post",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "month",
            "in": "path",
            "description": "Month of the post",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "day",
            "in": "path",
            "description": "Day of the post",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "post-title",
            "in": "path",
            "description": "Title of the post",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Details of a specific post",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "content": {
                      "type": "string",
                      "description": "HTML content of the specific post"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}