אסטרולוגיה - לאב און - Astrology

אסטרולוגיה - לאב און - Astrology · GPT-Aktionen

LoveOn Knowledge Base API

This API is designed to interact with the LoveOn website's sitemaps to extract information about categories and articles for a custom ChatGPT action.

  • GET /category-sitemap.xmlFetches the category sitemap XML.

    Retrieves the category sitemap XML from LoveOn website.

  • GET /post-sitemap.xmlFetches the post sitemap XML.

    Retrieves the post sitemap XML which contains articles from the LoveOn website.

  • POST /post-sitemap.xmlParses the post sitemap XML.

    Parses the post sitemap XML to extract URLs for articles.

Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "LoveOn Knowledge Base API",
    "description": "This API is designed to interact with the LoveOn website's sitemaps to extract information about categories and articles for a custom ChatGPT action.",
    "version": "1.0.2"
  },
  "servers": [
    {
      "url": "https://www.love-on.co.il",
      "description": "Main server for LoveOn content"
    }
  ],
  "paths": {
    "/category-sitemap.xml": {
      "get": {
        "operationId": "fetchCategorySitemap",
        "summary": "Fetches the category sitemap XML.",
        "description": "Retrieves the category sitemap XML from LoveOn website.",
        "responses": {
          "200": {
            "description": "Sitemap XML file",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/post-sitemap.xml": {
      "get": {
        "operationId": "fetchPostSitemap",
        "summary": "Fetches the post sitemap XML.",
        "description": "Retrieves the post sitemap XML which contains articles from the LoveOn website.",
        "responses": {
          "200": {
            "description": "Sitemap XML file",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "parsePostSitemap",
        "summary": "Parses the post sitemap XML.",
        "description": "Parses the post sitemap XML to extract URLs for articles.",
        "requestBody": {
          "required": true,
          "content": {
            "application/xml": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A JSON array of article URLs",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}