Assertions¶
The assertions endpoint allows users to enumerate all of the assertions present in CIViC as well as retrieve more detailed information on a specific assertion. This is the endpoint that should be used to obtain a complete listing of every assertion in CIViC.
Get a list of assertions¶
This endpoint returns a listing of assertions in CIViC. This index style endpoint is paginated by default. You can use the count
and page
parameters or the previous
and next
links to iterate through all the assertions.
HTTP Request Format
GET https://civicdb.org/api/assertions
Query Parameters
Parameter |
Default |
Description |
---|---|---|
page |
1 |
Which page of results to return |
count |
25 |
How many assertions to return on a single page |
Example Request
curl https://civicdb.org/api/assertions?count=1
Example Response
Expecting value: line 1 column 1 (char 0)
Get details for a specific assertion¶
This endpoint retrieves details about a specific assertion, given its internal CIViC id.
HTTP Request Format
GET https://civicdb.org/api/assertions/:id
Example Request
curl https://civicdb.org/api/assertions/9
Example Response
Expecting value: line 1 column 1 (char 0)