curl --request GET \
--url https://services.pref.rio/heimdall-admin/api/v1/mappings/list \
--header 'Authorization: Bearer <token>'import requests
url = "https://services.pref.rio/heimdall-admin/api/v1/mappings/list"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://services.pref.rio/heimdall-admin/api/v1/mappings/list', 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://services.pref.rio/heimdall-admin/api/v1/mappings/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://services.pref.rio/heimdall-admin/api/v1/mappings/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://services.pref.rio/heimdall-admin/api/v1/mappings/list")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.pref.rio/heimdall-admin/api/v1/mappings/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": 1,
"path_pattern": "/api/v1/users/{user_id}",
"method": "GET",
"action": "user:read",
"description": "Get user profile information",
"created_by": "12345678901",
"created_at": "2024-01-15T10:30:00Z"
},
{
"id": 2,
"path_pattern": "/api/v1/groups",
"method": "POST",
"action": "group:create",
"description": "Create new group",
"created_by": "12345678901",
"created_at": "2024-01-15T11:00:00Z",
"updated_at": "2024-01-16T09:15:00Z"
}
]{
"detail": "Could not validate credentials"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Failed to list mappings: Database connection error"
}List all endpoint mappings
Retrieve a list of all endpoint-to-action mappings with optional filtering.
Authorization: All authenticated users can list mappings.
Filtering: Use the action_filter parameter to show only mappings for a specific action (exact match on action name).
Management Interface: This endpoint is designed for administrative interfaces and configuration management tools.
Use Cases:
- Display current authorization configuration
- Administrative overview of endpoint mappings
- Audit and compliance reporting
- Integration with external configuration management
- Troubleshooting authorization issues
curl --request GET \
--url https://services.pref.rio/heimdall-admin/api/v1/mappings/list \
--header 'Authorization: Bearer <token>'import requests
url = "https://services.pref.rio/heimdall-admin/api/v1/mappings/list"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://services.pref.rio/heimdall-admin/api/v1/mappings/list', 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://services.pref.rio/heimdall-admin/api/v1/mappings/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://services.pref.rio/heimdall-admin/api/v1/mappings/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://services.pref.rio/heimdall-admin/api/v1/mappings/list")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.pref.rio/heimdall-admin/api/v1/mappings/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": 1,
"path_pattern": "/api/v1/users/{user_id}",
"method": "GET",
"action": "user:read",
"description": "Get user profile information",
"created_by": "12345678901",
"created_at": "2024-01-15T10:30:00Z"
},
{
"id": 2,
"path_pattern": "/api/v1/groups",
"method": "POST",
"action": "group:create",
"description": "Create new group",
"created_by": "12345678901",
"created_at": "2024-01-15T11:00:00Z",
"updated_at": "2024-01-16T09:15:00Z"
}
]{
"detail": "Could not validate credentials"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Failed to list mappings: Database connection error"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Filter mappings by specific action name (exact match)
Response
Mappings retrieved successfully
Unique identifier of the mapping
1
URL path pattern
"/api/v1/users/{user_id}"
HTTP method
"GET"
Action name
"user:read"
ISO timestamp when the mapping was created
"2024-01-15T10:30:00Z"
Mapping description
"Get user profile information"
CPF of the user who created this mapping
"12345678901"
ISO timestamp when the mapping was last updated
"2024-01-16T14:20:00Z"
