Compare articles across multiple frameworks
curl --request GET \
--url https://demo.law4devs.eu/api/v1/compareimport requests
url = "https://demo.law4devs.eu/api/v1/compare"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo.law4devs.eu/api/v1/compare', 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/compare",
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/compare"
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/compare")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo.law4devs.eu/api/v1/compare")
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": {
"frameworks": {},
"tag": {
"id": 1,
"slug": "vulnerability-reporting",
"name": "Vulnerability Reporting",
"description": "Requirements related to disclosing and reporting software vulnerabilities.",
"keywords": [
"vulnerability",
"CVE",
"disclose",
"disclosure"
],
"color": "#e74c3c",
"created_at": "2023-11-07T05:31:56Z"
}
},
"meta": {
"api_version": "1.0"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Framework 'xyz' not found."
}
}Compare
Compare articles across multiple frameworks
Returns articles grouped by framework slug for side-by-side comparison. Accepts a comma-separated list of framework slugs. Optionally filter articles by tag to focus the comparison on a specific topic.
GET
/
compare
Compare articles across multiple frameworks
curl --request GET \
--url https://demo.law4devs.eu/api/v1/compareimport requests
url = "https://demo.law4devs.eu/api/v1/compare"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo.law4devs.eu/api/v1/compare', 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/compare",
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/compare"
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/compare")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo.law4devs.eu/api/v1/compare")
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": {
"frameworks": {},
"tag": {
"id": 1,
"slug": "vulnerability-reporting",
"name": "Vulnerability Reporting",
"description": "Requirements related to disclosing and reporting software vulnerabilities.",
"keywords": [
"vulnerability",
"CVE",
"disclose",
"disclosure"
],
"color": "#e74c3c",
"created_at": "2023-11-07T05:31:56Z"
}
},
"meta": {
"api_version": "1.0"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Framework 'xyz' not found."
}
}Query Parameters
Comma-separated list of framework slugs (max 5 recommended)
Example:
"cra,nis2,gdpr"
Filter articles to those with this tag slug
Example:
"risk-assessment"
Was this page helpful?
⌘I
