Test an endpoint

Test an already registered endpoint on Goki.

POST [environmentBaseUrl]/v1/endpoints/:action/test

Path Parameters

Name
Type
Description

action*

String

Endpoint action (please read the Endpoints page).

{
    "data": {
      "request": {
        "url": "https://example.com",
        "method": "GET", // HTTP method
        "query": { token: "hgfd543" },      
        // Body is different based on the action. Please read the Endpoints page.
        "body": {} // (Optional) The data is sent with request 
      },
      "response": {}, // Your endpoint response
      "valid": false, // Indicates if your response is valid or not
      "error": {} // Validation error
    }
}

Last updated