Content update history for a framework
curl --request GET \
--url https://demo.law4devs.eu/api/v1/frameworks/{slug}/changelogimport requests
url = "https://demo.law4devs.eu/api/v1/frameworks/{slug}/changelog"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo.law4devs.eu/api/v1/frameworks/{slug}/changelog', 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}/changelog",
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}/changelog"
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}/changelog")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo.law4devs.eu/api/v1/frameworks/{slug}/changelog")
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": [
{
"synced_at": "2023-11-07T05:31:56Z",
"articles_added": 123,
"articles_updated": 123,
"recitals_added": 123,
"recitals_updated": 123,
"requirements_added": 123,
"duration_seconds": 123,
"success": true,
"error_message": "<string>"
}
],
"meta": {
"api_version": "1.0",
"framework": "cra",
"total": 3
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Framework 'xyz' not found."
}
}Changelog
Content update history for a framework
Returns content update log entries for a specific framework, newest first. Use this to check when data was last updated and how many records were added or modified.
GET
/
frameworks
/
{slug}
/
changelog
Content update history for a framework
curl --request GET \
--url https://demo.law4devs.eu/api/v1/frameworks/{slug}/changelogimport requests
url = "https://demo.law4devs.eu/api/v1/frameworks/{slug}/changelog"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo.law4devs.eu/api/v1/frameworks/{slug}/changelog', 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}/changelog",
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}/changelog"
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}/changelog")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo.law4devs.eu/api/v1/frameworks/{slug}/changelog")
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": [
{
"synced_at": "2023-11-07T05:31:56Z",
"articles_added": 123,
"articles_updated": 123,
"recitals_added": 123,
"recitals_updated": 123,
"requirements_added": 123,
"duration_seconds": 123,
"success": true,
"error_message": "<string>"
}
],
"meta": {
"api_version": "1.0",
"framework": "cra",
"total": 3
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Framework 'xyz' not found."
}
}Path Parameters
Framework slug (e.g. cra, nis2, gdpr)
Pattern:
^[a-z0-9_]+$Example:
"cra"
Query Parameters
Maximum number of log entries (default 20)
Example:
10
Was this page helpful?
⌘I
