List Projection Definitions

get
List projection definitions

https://api.serialized.io/projections/definitions
List all definitions
Request
Response
Request
Headers
Serialized-Access-Key
required
string
Serialized access key
Serialized-Secret-Access-Key
required
string
Serialized secret key
Query Parameters
skip
optional
number
Number of entries to skip.
limit
optional
number
Max number of entries to include in response. Default 100.
Response
200: OK
Projection definitions successfully received
{
"definitions": [
{
"projectionName": "orders",
"feedName": "order",
"handlers": [
{
"eventType": "OrderCancelledEvent",
"functionUri": "https://your-server.com/lambda",
"functions": [
{
"function": "inc",
"targetSelector": "$.projection.orders[?]",
"eventSelector": "$.event[?]",
"targetFilter": "@.orderId == $.event.orderId",
"eventFilter": "@.orderAmount > 4000"
}
]
}
]
}
]
"hasMore": false,
"totalCount": 1
}

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/definitions
Java
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("definitions")
.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/definitions", Method.GET)
.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/definitions")
.then(function (response) {
// Handle response
})
.catch(function (error) {
// Handle error
});