List services
curl --request GET \
--url https://api.example.com/servicesimport requests
url = "https://api.example.com/services"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/services', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/services",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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"
)
func main() {
url := "https://api.example.com/services"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/services")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/services")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"services": [
{
"deployment_id": "<string>",
"handlers": [
{
"input_description": "<string>",
"name": "<string>",
"output_description": "<string>",
"abort_timeout": "<string>",
"documentation": "<string>",
"enable_lazy_state": true,
"idempotency_retention": "<string>",
"inactivity_timeout": "<string>",
"info": [
{
"message": "<string>",
"code": "<string>"
}
],
"input_json_schema": "<unknown>",
"journal_retention": "<string>",
"metadata": {},
"output_json_schema": "<unknown>",
"public": true,
"retry_policy": {
"exponentiation_factor": 123,
"initial_interval": "<string>",
"max_attempts": 2,
"max_interval": "<string>"
}
}
],
"name": "<string>",
"revision": 1,
"abort_timeout": "<string>",
"documentation": "<string>",
"enable_lazy_state": true,
"idempotency_retention": "<string>",
"inactivity_timeout": "<string>",
"info": [
{
"message": "<string>",
"code": "<string>"
}
],
"journal_retention": "<string>",
"metadata": {},
"public": true,
"retry_policy": {
"exponentiation_factor": 123,
"initial_interval": "<string>",
"max_attempts": 2,
"max_interval": "<string>"
},
"workflow_completion_retention": "<string>"
}
]
}{
"message": "<string>",
"restate_code": "<string>"
}{
"message": "<string>",
"restate_code": "<string>"
}{
"message": "<string>",
"restate_code": "<string>"
}{
"message": "<string>",
"restate_code": "<string>"
}{
"message": "<string>",
"restate_code": "<string>"
}service
List services
Returns a list of all registered services, including their metadata and configuration.
GET
/
services
List services
curl --request GET \
--url https://api.example.com/servicesimport requests
url = "https://api.example.com/services"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/services', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/services",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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"
)
func main() {
url := "https://api.example.com/services"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/services")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/services")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"services": [
{
"deployment_id": "<string>",
"handlers": [
{
"input_description": "<string>",
"name": "<string>",
"output_description": "<string>",
"abort_timeout": "<string>",
"documentation": "<string>",
"enable_lazy_state": true,
"idempotency_retention": "<string>",
"inactivity_timeout": "<string>",
"info": [
{
"message": "<string>",
"code": "<string>"
}
],
"input_json_schema": "<unknown>",
"journal_retention": "<string>",
"metadata": {},
"output_json_schema": "<unknown>",
"public": true,
"retry_policy": {
"exponentiation_factor": 123,
"initial_interval": "<string>",
"max_attempts": 2,
"max_interval": "<string>"
}
}
],
"name": "<string>",
"revision": 1,
"abort_timeout": "<string>",
"documentation": "<string>",
"enable_lazy_state": true,
"idempotency_retention": "<string>",
"inactivity_timeout": "<string>",
"info": [
{
"message": "<string>",
"code": "<string>"
}
],
"journal_retention": "<string>",
"metadata": {},
"public": true,
"retry_policy": {
"exponentiation_factor": 123,
"initial_interval": "<string>",
"max_attempts": 2,
"max_interval": "<string>"
},
"workflow_completion_retention": "<string>"
}
]
}{
"message": "<string>",
"restate_code": "<string>"
}{
"message": "<string>",
"restate_code": "<string>"
}{
"message": "<string>",
"restate_code": "<string>"
}{
"message": "<string>",
"restate_code": "<string>"
}{
"message": "<string>",
"restate_code": "<string>"
}Response
List of all registered services with their metadata
List of all registered services.
Show child attributes
Show child attributes
Was this page helpful?
⌘I