Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change - https://riseup.net/donate
@@ -21,7 +21,7 @@ The radar database consists of the following entities:
Each entity comes with a set of fields. All entities have a common field UUID which uniquely identifies an entity instance.
This documentation follows json only, it is possible to change to other formats including xml by altering the extension.
This documentation follows json only, it is possible to change to other formats including xml by altering the url extension, or the Accept header in the GET request.
# Entity Endpoints
...
...
@@ -382,4 +382,30 @@ This is where there will usually be facets to cover the requirement.
# Authentication
For retrieving entities, and searching, you don't need to authenticate. To post you will. To post via the API it's best to ask radar@squat.net for permission for the account to be used, as this can be restricted at any time.
To authenticate at the moment you need to get a cookie and token using the username and password associated with the account.
For which you will get a response including the required cookie and in the body of the response the `token` for to be used in all future requests as the `X-CSRF-Token` header.
# Posting entities
The end points are the same as for retrieving entities. If you POST to /api/1.2/node you will get a UUID assigned to a new entity. If you PUT to /api/1.2/node/[uuid] you can set the UUID of the entity.