Coverage statistics for all active frameworks
curl --request GET \
--url https://demo.law4devs.eu/api/v1/statsimport requests
url = "https://demo.law4devs.eu/api/v1/stats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo.law4devs.eu/api/v1/stats', 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/stats",
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/stats"
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/stats")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo.law4devs.eu/api/v1/stats")
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": [
{
"framework": "cra",
"name": "Cyber Resilience Act",
"status": "active",
"last_synced_at": "2023-11-07T05:31:56Z",
"articles": {
"total": 71,
"expected": 69,
"coverage_pct": 102.9
},
"recitals": {
"total": 130,
"expected": 173,
"coverage_pct": 75.1
},
"requirements": {
"total": 290
},
"annexes": {
"total": 0
},
"tags": {
"total": 10
}
}
],
"meta": {
"api_version": "1.0",
"total": 19
}
}Stats
Coverage statistics for all active frameworks
Returns stats for every active framework in one call.
GET
/
stats
Coverage statistics for all active frameworks
curl --request GET \
--url https://demo.law4devs.eu/api/v1/statsimport requests
url = "https://demo.law4devs.eu/api/v1/stats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo.law4devs.eu/api/v1/stats', 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/stats",
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/stats"
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/stats")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo.law4devs.eu/api/v1/stats")
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": [
{
"framework": "cra",
"name": "Cyber Resilience Act",
"status": "active",
"last_synced_at": "2023-11-07T05:31:56Z",
"articles": {
"total": 71,
"expected": 69,
"coverage_pct": 102.9
},
"recitals": {
"total": 130,
"expected": 173,
"coverage_pct": 75.1
},
"requirements": {
"total": 290
},
"annexes": {
"total": 0
},
"tags": {
"total": 10
}
}
],
"meta": {
"api_version": "1.0",
"total": 19
}
}Was this page helpful?
Coverage statistics for a single frameworkFull-text search across articles, recitals, and requirements
⌘I
