Sap Assistant

Sap Assistant · GPT アクション

Northwind OData Service

Northwind OData Service

  • GET /OrdersGet a list of Orders
  • GET /Orders({OrderID})Get a single Orders by OrderID
元の API スキーマ
{
  "openapi": "3.0.0",
  "info": {
    "title": "Northwind OData Service",
    "description": "Northwind OData Service",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://services.odata.org/V2/Northwind/Northwind.svc/",
      "description": "Northwind OData Service"
    }
  ],
  "paths": {
    "/Orders": {
      "get": {
        "operationId": "OrderGet",
        "summary": "Get a list of Orders",
        "responses": {
          "200": {
            "description": "Successful response with a list of Orders",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Order"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Orders({OrderID})": {
      "get": {
        "operationId": "OrderIDget",
        "summary": "Get a single Orders by OrderID",
        "parameters": [
          {
            "name": "OrderID",
            "in": "path",
            "description": "OrderID of the Orders to fetch",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with details of Orders",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Order": {
        "type": "object",
        "properties": {
          "OrderID": {
            "type": "integer"
          },
          "CustomerID": {
            "type": "string"
          },
          "EmployeeID": {
            "type": "integer"
          },
          "OrderDate": {
            "type": "string"
          },
          "RequiredDate": {
            "type": "string"
          },
          "ShippedDate": {
            "type": "string"
          },
          "ShipVia": {
            "type": "integer"
          },
          "Freight": {
            "type": "number"
          },
          "ShipName": {
            "type": "string"
          },
          "ShipAddress": {
            "type": "string"
          },
          "ShipCity": {
            "type": "string"
          },
          "ShipRegion": {
            "type": "string"
          },
          "ShipPostalCode": {
            "type": "string"
          },
          "ShipCountry": {
            "type": "string"
          }
        }
      }
    }
  }
}