Get framework detail
curl --request GET \
--url https://demo.law4devs.eu/api/v1/frameworks/{slug}import requests
url = "https://demo.law4devs.eu/api/v1/frameworks/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo.law4devs.eu/api/v1/frameworks/{slug}', 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://demo.law4devs.eu/api/v1/frameworks/{slug}",
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://demo.law4devs.eu/api/v1/frameworks/{slug}"
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://demo.law4devs.eu/api/v1/frameworks/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo.law4devs.eu/api/v1/frameworks/{slug}")
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{
"data": {
"id": 1,
"slug": "cra",
"name": "Cyber Resilience Act",
"short_name": "CRA",
"celex_number": "32024R2847",
"description": "<string>",
"is_active": true,
"status": "active",
"expected_articles": 69,
"expected_recitals": 173,
"last_synced_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"article_count": 71,
"recital_count": 130,
"eurlex_url": "https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:32024R2847",
"requirement_count": 290,
"annex_count": 0,
"tag_count": 10,
"coverage": {
"articles_pct": 102.9,
"recitals_pct": 75.1
}
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Framework 'xyz' not found."
}
}Frameworks
Get framework detail
Returns full framework metadata including counts (articles, recitals, requirements, annexes, tags) and coverage percentages.
GET
/
frameworks
/
{slug}
Get framework detail
curl --request GET \
--url https://demo.law4devs.eu/api/v1/frameworks/{slug}import requests
url = "https://demo.law4devs.eu/api/v1/frameworks/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo.law4devs.eu/api/v1/frameworks/{slug}', 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://demo.law4devs.eu/api/v1/frameworks/{slug}",
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://demo.law4devs.eu/api/v1/frameworks/{slug}"
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://demo.law4devs.eu/api/v1/frameworks/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo.law4devs.eu/api/v1/frameworks/{slug}")
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{
"data": {
"id": 1,
"slug": "cra",
"name": "Cyber Resilience Act",
"short_name": "CRA",
"celex_number": "32024R2847",
"description": "<string>",
"is_active": true,
"status": "active",
"expected_articles": 69,
"expected_recitals": 173,
"last_synced_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"article_count": 71,
"recital_count": 130,
"eurlex_url": "https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:32024R2847",
"requirement_count": 290,
"annex_count": 0,
"tag_count": 10,
"coverage": {
"articles_pct": 102.9,
"recitals_pct": 75.1
}
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Framework 'xyz' not found."
}
}Was this page helpful?
⌘I
