List service handlers
curl --request GET \
--url https://api.example.com/services/{service}/handlersimport requests
url = "https://api.example.com/services/{service}/handlers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/services/{service}/handlers', 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/{service}/handlers",
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/{service}/handlers"
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/{service}/handlers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/services/{service}/handlers")
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{
"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>"
}
}
]
}{
"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_handler
List service handlers
Returns a list of all handlers (methods) available in the specified service.
GET
/
services
/
{service}
/
handlers
List service handlers
curl --request GET \
--url https://api.example.com/services/{service}/handlersimport requests
url = "https://api.example.com/services/{service}/handlers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/services/{service}/handlers', 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/{service}/handlers",
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/{service}/handlers"
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/{service}/handlers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/services/{service}/handlers")
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{
"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>"
}
}
]
}{
"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>"
}Was this page helpful?
⌘I