דילוג לתוכן
מרכז התיעוד
לאתר LinkNodes Energy
LinkNodesENERGYתיעוד

טוענים את החיפוש…

    חיפוש גם בתוך המאמרים ↑ ↓ לניווט Esc לסגירה

    לאתר החברה

    אינטגרציות ו־API

    אוסף Postman

    אוסף בקשות API עם הפניות למשתני סביבה; אינו חיבור פעיל לספק.

    אוסף בקשות API עם הפניות למשתני סביבה; אינו חיבור פעיל לספק.

    {
      "info": {
        "name": "LinkNodes Energy — Production API",
        "description": "Read-only production API checks. Provider integrations are organized in Postman cloud under Charging Providers, Fuel Providers, Payments & Webhooks and Mobile Client API.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
      },
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test('HTTP 2xx', () => pm.expect(pm.response.code).to.be.within(200, 299));",
              "pm.test('JSON response', () => pm.response.to.be.json);",
              "if (pm.info.requestName === 'GET /api/health') {",
              "  const body = pm.response.json();",
              "  pm.test('LinkNodes healthy product', () => {",
              "    pm.expect(body.name).to.eql('LinkNodes Energy');",
              "    pm.expect(body.status).to.eql('ok');",
              "    pm.expect(body.surface).to.eql('product');",
              "  });",
              "}",
              "if (pm.info.requestName.startsWith('GET /api/reference/')) {",
              "  pm.test('Reference timing present', () => pm.expect(pm.response.headers.get('server-timing')).to.include('reference'));",
              "}"
            ]
          }
        }
      ],
      "item": [
        {
          "name": "GET /api/health",
          "request": {
            "method": "GET",
            "url": "{{baseUrl}}/api/health"
          }
        },
        {
          "name": "GET /api/reference/overview",
          "request": {
            "method": "GET",
            "url": "{{baseUrl}}/api/reference/overview"
          }
        },
        {
          "name": "GET /api/reference/map",
          "request": {
            "method": "GET",
            "url": "{{baseUrl}}/api/reference/map"
          }
        }
      ]
    }