Skip to main content

Search Legal Pages

This endpoint performs search of a Legal Page

info

This operation does not require authentication. If the user is authenticated the 'ack' field will be added to the response with the user's ack status for that document.

HTTP Request

GET /api/v2/legal_page/search/

Parameters

NameInTypeRequiredDescription
searchquerystringfalseA search term
valid_fromquerystringfalsevalid_from
valid_toquerystringfalsevalid_to
orderingquerystringfalseWhich field to use when ordering the results

Example Request


const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/legal_page/search/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» countintegerfalsenoneTotal results count
» nextstring(uri)¦nullfalsenoneNext page url
» previousstring(uri)¦nullfalsenonePrevious page url
» resultslist(Legal Page)falsenoneList of results

Example responses

{
"count": "integer",
"next": "string(uri)",
"previous": "string(uri)",
"results": [{Legal Page}]
}