Future Felix - Strategic Foresight Consultant

Future Felix - Strategic Foresight Consultant · GPT-Aktionen

MMC.StrategyGPT.API

  • GET /api/trends/searchSearch for trends based on query
Ursprüngliches API-Schema
{
  "openapi": "3.0.1",
  "info": {
    "title": "MMC.StrategyGPT.API",
    "version": 1
  },
  "servers": [
    {
      "url": "https://api-strategygpt.mountainmoving.co",
      "description": "Main API server"
    }
  ],
  "paths": {
    "/api/trends/search": {
      "get": {
        "operationId": "searchTrends",
        "tags": [
          "Trend"
        ],
        "summary": "Search for trends based on query",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Query string to search trends"
          }
        ],
        "responses": {
          "200": {
            "description": "A list of trends that match the query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrendSearchItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrendSearchItem"
                  }
                }
              },
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrendSearchItem"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "TrendSearchItem": {
        "type": "object",
        "properties": {
          "trendId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "shortDescription": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "megaTrend": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "subCategory": {
            "type": "string",
            "nullable": true
          },
          "indicators": {
            "type": "string",
            "nullable": true
          },
          "opportunities": {
            "type": "string",
            "nullable": true
          },
          "risksChallenges": {
            "type": "string",
            "nullable": true
          },
          "predictionsForecasts": {
            "type": "string",
            "nullable": true
          },
          "emergenceDate": {
            "type": "string",
            "nullable": true
          },
          "impactDate": {
            "type": "string",
            "nullable": true
          },
          "impactLevel": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "obsolescenceDate": {
            "type": "string",
            "nullable": true
          },
          "sources": {
            "type": "string",
            "nullable": true
          },
          "affectedStakeholders": {
            "type": "string",
            "nullable": true
          },
          "geographicRelevance": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}