EMSI.ME

EMSI.ME · GPT Actions

Emsi Blog

API to fetch posts from the past week from the Emsi WordPress blog

  • GET /postsFetch Posts from the Past Week

    Retrieve posts from the past week from the Emsi WordPress blog.

原始 API 定义
{
  "openapi": "3.1.0",
  "info": {
    "title": "Emsi Blog",
    "description": "API to fetch posts from the past week from the Emsi WordPress blog",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://www.emsi.me/wp-json/wp/v2"
    }
  ],
  "paths": {
    "/posts": {
      "get": {
        "summary": "Fetch Posts from the Past Week",
        "description": "Retrieve posts from the past week from the Emsi WordPress blog.",
        "operationId": "getPosts",
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "description": "Limit response to posts published after this date",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "_fields",
            "in": "query",
            "description": "Fields to return in the response",
            "required": true,
            "schema": {
              "type": "string",
              "default": "link,title,content"
            }
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Post": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "link": {
            "type": "string"
          }
        }
      }
    }
  }
}