Galileo

This version is in Beta, there may be issues we're still working out.

ALFs

ALFs Overview

{
  "har": {
  "har": { ... }
Object

Har

    "log": {
    "log": { ... }
Object

Log

      "version": "foo",
String

Version

      "creator": {
      "creator": { ... }
Object

Creator

        "name": "foo",
String

Name

        "version": "foo"
String

Version

      },
      "entry": {
      "entry": { ... }
Object

Entry

        "request": {
        "request": { ... }
Object

Request

          "method": "foo",
String

Method

          "url": "foo",
String

Url

          "httpVersion": "foo",
String

Http Version

          queryString: [
Array

Query String

            {
            { ... }
Object

Name Value

              "name": "foo",
String

Name

              "value": "foo"
String

Value

            }
          ]
          headers: [
Array

Headers

            {
            { ... }
Object

Name Value

              "name": "foo",
String

Name

              "value": "foo"
String

Value

            }
          ]
          "headerSize": 42.0,
Number

Header Size

          "bodySize": 42.0
Number

Body Size

        },
        "response": {
        "response": { ... }
Object

Response

          "status": 42,
Integer

Status

          "statusText": "foo",
String

Status Text

          "httpVersion": "foo",
String

Http Version

          headers: [
Array

Headers

            {
            { ... }
Object

Name Value

              "name": "foo",
String

Name

              "value": "foo"
String

Value

            }
          ]
          "headerSize": 42.0,
Number

Header Size

          "bodySize": 42.0,
Number

Body Size

          "content": {
          "content": { ... }
Object

Content

            "size": 42.0,
Number

Size

            "mimeType": "foo"
String

Mime Type

          }
        },
        "timings": {
        "timings": { ... }
Object

Timings

          "send": 42.0,
Number

Send

          "wait": 42.0,
Number

Wait

          "receive": 42.0
Number

Receive

        }
      }
    }
  }
}

Environment ALFs

Open in API Explorer
GET /environments/{environmentId}/alfs

The Environment ALFs endpoint returns an array of ALF objects contained within the specified Environment.

Example Request

Format:
curl --request GET \
  --url 'https://api.galileo.mashape.com/environments/foo/alfs?from=&to=&filters=&sort=foo&page=256&pageSize=256' \
  --header 'accept: application/json' \
  --header 'service-token: YOUR API KEY HERE'
require 'uri'
require 'net/http'

url = URI("https://api.galileo.mashape.com/environments/foo/alfs?from=&to=&filters=&sort=foo&page=256&pageSize=256")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["service-token"] = 'YOUR API KEY HERE'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "api.galileo.mashape.com",
  "port": null,
  "path": "/environments/foo/alfs?from=&to=&filters=&sort=foo&page=256&pageSize=256",
  "headers": {
    "accept": "application/json",
    "service-token": "YOUR API KEY HERE"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.galileo.mashape.com")

headers = {
    'accept': "application/json",
    'service-token': "YOUR API KEY HERE"
    }

conn.request("GET", "/environments/foo/alfs?from=&to=&filters=&sort=foo&page=256&pageSize=256", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.galileo.mashape.com/environments/foo/alfs?from=&to=&filters=&sort=foo&page=256&pageSize=256",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "service-token: YOUR API KEY HERE"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.galileo.mashape.com/environments/foo/alfs?from=&to=&filters=&sort=foo&page=256&pageSize=256"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("service-token", "YOUR API KEY HERE")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
environmentId String Required

The unique identifier (ID or Slug) of the desired environment.

foo

Query Parameters

Name Type Required Description Example
from Integer (UNIX timestamp) Optional

Returns results with a creation timestamp greater than the specified timestamp.

to Integer (UNIX timestamp) Optional

Returns results with a creation timestamp less than the specified timestamp.

filters String (Base64 Encoded JSON Array) Optional

Array of Environment Filters.

sort String Optional

Returns results sorted by field, prepend field with - for descending results.

foo
page Integer (int32) Optional

Returns results of the specified page index

256
pageSize Integer (int32) Optional

The number of results to return per page up to a maximum of 100. Defaults to 15

256

Responses

200 OK

Array containing the requested environment ALFs.

ALFs Al f success
{
  results: [
Array

Results

    {
    { ... }
Object

Alf

      "har": {
      "har": { ... }
Object

Har

        "log": {
        "log": { ... }
Object

Log

          "version": "foo",
String

Version

          "creator": {
          "creator": { ... }
Object

Creator

            "name": "foo",
String

Name

            "version": "foo"
String

Version

          },
          "entry": {
          "entry": { ... }
Object

Entry

            "request": {
            "request": { ... }
Object

Request

              "method": "foo",
String

Method

              "url": "foo",
String

Url

              "httpVersion": "foo",
String

Http Version

              queryString: [
Array

Query String

                {
                { ... }
Object

Name Value

                  "name": "foo",
String

Name

                  "value": "foo"
String

Value

                }
              ]
              headers: [
Array

Headers

                {
                { ... }
Object

Name Value

                  "name": "foo",
String

Name

                  "value": "foo"
String

Value

                }
              ]
              "headerSize": 42.0,
Number

Header Size

              "bodySize": 42.0
Number

Body Size

            },
            "response": {
            "response": { ... }
Object

Response

              "status": 42,
Integer

Status

              "statusText": "foo",
String

Status Text

              "httpVersion": "foo",
String

Http Version

              headers: [
Array

Headers

                {
                { ... }
Object

Name Value

                  "name": "foo",
String

Name

                  "value": "foo"
String

Value

                }
              ]
              "headerSize": 42.0,
Number

Header Size

              "bodySize": 42.0,
Number

Body Size

              "content": {
              "content": { ... }
Object

Content

                "size": 42.0,
Number

Size

                "mimeType": "foo"
String

Mime Type

              }
            },
            "timings": {
            "timings": { ... }
Object

Timings

              "send": 42.0,
Number

Send

              "wait": 42.0,
Number

Wait

              "receive": 42.0
Number

Receive

            }
          }
        }
      }
    }
  ]
  "totalCount": 42.0,
Number

Total number of ALFs within the Environment

  "currentPage": 42.0
Number

Current page of results

}
default Default

Unexpected error

Stats Error
{
  "code": 42.0,
Number

Code

  "message": "foo",
String

Message

  fields: [
Array

Returns array of field errors upon validation error.

    {
    { ... }
Object

Field Error

      "name": "foo",
String

Field name with error.

      "errors": [
    "foo",
    "foo",
    "foo"
  ]
Array

Array of error messages for the field.

    }
  ]
}

Retrieve ALF Request Content

Open in API Explorer
GET /environments/{environmentId}/alfs/{alfId}/request-content

The Retrieve Alf Request Content endpoint returns the raw request content body, additionally you can pass a download parameter to force browser download.

Example Request

Format:
curl --request GET \
  --url 'https://api.galileo.mashape.com/environments/foo/alfs/foo/request-content?download=true' \
  --header 'accept: application/json' \
  --header 'service-token: YOUR API KEY HERE'
require 'uri'
require 'net/http'

url = URI("https://api.galileo.mashape.com/environments/foo/alfs/foo/request-content?download=true")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["service-token"] = 'YOUR API KEY HERE'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "api.galileo.mashape.com",
  "port": null,
  "path": "/environments/foo/alfs/foo/request-content?download=true",
  "headers": {
    "accept": "application/json",
    "service-token": "YOUR API KEY HERE"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.galileo.mashape.com")

headers = {
    'accept': "application/json",
    'service-token': "YOUR API KEY HERE"
    }

conn.request("GET", "/environments/foo/alfs/foo/request-content?download=true", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.galileo.mashape.com/environments/foo/alfs/foo/request-content?download=true",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "service-token: YOUR API KEY HERE"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.galileo.mashape.com/environments/foo/alfs/foo/request-content?download=true"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("service-token", "YOUR API KEY HERE")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
environmentId String Required

The unique identifier (ID or Slug) of the desired environment.

foo
alfId String Required

The unique identifier (ID or Slug) of the desired ALF.

foo

Query Parameters

Name Type Required Description Example
download Boolean Optional

Force browser download of request content

true

Responses

200 OK

Raw ALF Request Content Body

(Empty Response)
default Default

Unexpected error

Stats Error
{
  "code": 42.0,
Number

Code

  "message": "foo",
String

Message

  fields: [
Array

Returns array of field errors upon validation error.

    {
    { ... }
Object

Field Error

      "name": "foo",
String

Field name with error.

      "errors": [
    "foo",
    "foo",
    "foo"
  ]
Array

Array of error messages for the field.

    }
  ]
}

Retrieve ALF Response Content

Open in API Explorer
GET /environments/{environmentId}/alfs/{alfId}/response-content

The Retrieve Alf Response Content endpoint returns the raw request content body, additionally you can pass a download parameter to force browser download.

Example Request

Format:
curl --request GET \
  --url 'https://api.galileo.mashape.com/environments/foo/alfs/foo/response-content?download=true' \
  --header 'accept: application/json' \
  --header 'service-token: YOUR API KEY HERE'
require 'uri'
require 'net/http'

url = URI("https://api.galileo.mashape.com/environments/foo/alfs/foo/response-content?download=true")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["service-token"] = 'YOUR API KEY HERE'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "api.galileo.mashape.com",
  "port": null,
  "path": "/environments/foo/alfs/foo/response-content?download=true",
  "headers": {
    "accept": "application/json",
    "service-token": "YOUR API KEY HERE"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.galileo.mashape.com")

headers = {
    'accept': "application/json",
    'service-token': "YOUR API KEY HERE"
    }

conn.request("GET", "/environments/foo/alfs/foo/response-content?download=true", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.galileo.mashape.com/environments/foo/alfs/foo/response-content?download=true",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "service-token: YOUR API KEY HERE"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.galileo.mashape.com/environments/foo/alfs/foo/response-content?download=true"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("service-token", "YOUR API KEY HERE")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
environmentId String Required

The unique identifier (ID or Slug) of the desired environment.

foo
alfId String Required

The unique identifier (ID or Slug) of the desired ALF.

foo

Query Parameters

Name Type Required Description Example
download Boolean Optional

Force browser download of request content

true

Responses

200 OK

Raw ALF Response Content Body

(Empty Response)
default Default

Unexpected error

Stats Error
{
  "code": 42.0,
Number

Code

  "message": "foo",
String

Message

  fields: [
Array

Returns array of field errors upon validation error.

    {
    { ... }
Object

Field Error

      "name": "foo",
String

Field name with error.

      "errors": [
    "foo",
    "foo",
    "foo"
  ]
Array

Array of error messages for the field.

    }
  ]
}