Get Single Projection

get
Get Single Projection

https://api.serialized.io/projections/single/{projectionName}/{projectionId}
Request
Response
Request
Path Parameters
projectionName
required
string
The name of the Projection type
projectionId
required
string
The id of the Projection instance
Headers
Serialized-Access-Key
required
string
Serialized access key
Serialized-Secret-Access-Key
required
string
Serialized secret key
Query Parameters
awaitCreation
optional
integer
Max number of milliseconds to await the initial creation. Must be between 1 and 60000.
Response
200: OK
Single Projection successfully received
{
"projectionId": "22c3780f-6dcb-440f-8532-6693be83f21c",
"createdAt": 1523518143967,
"updatedAt": 1523518144467,
"data": {}
}

Example

cURL
Java
C#
Node
cURL
curl -i \
--header "Serialized-Access-Key: <YOUR_ACCESS_KEY>" \
--header "Serialized-Secret-Access-Key: <YOUR_SECRET_ACCESS_KEY>" \
https://api.serialized.io/projections/single/orders/84e3565e-cd61-44e7-9769-c4663588c4dd
Java
import com.google.common.collect.ImmutableMap;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
Client client = ClientBuilder.newClient();
URI apiRoot = URI.create("https://api.serialized.io");
Map response = client.target(apiRoot)
.path("projections")
.path("single")
.path("orders")
.path("84e3565e-cd61-44e7-9769-c4663588c4dd")
.request()
.header("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
.header("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>")
.get(Map.class);
C#
using RestSharp;
using System;
var client = new RestClient("https://api.serialized.io");
var request = new RestRequest("projections/single/{projectionName}/{projectionId}", Method.GET)
.AddUrlSegment("projectionName", "orders")
.AddUrlSegment("projectionId", "84e3565e-cd61-44e7-9769-c4663588c4dd")
.AddHeader("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
.AddHeader("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>");
var response = client.Execute<Dictionary<string, Object>>(request);
Node
const axios = require("axios");
const client = axios.create({
baseURL: "https://api.serialized.io",
headers: {"Serialized-Access-Key": "<YOUR_ACCESS_KEY>"},
headers: {"Serialized-Secret-Access-Key": "<YOUR_SECRET_ACCESS_KEY>"}
});
client.get("projections/single/orders/84e3565e-cd61-44e7-9769-c4663588c4dd")
.then(function (response) {
// Handle response
})
.catch(function (error) {
// Handle error
});