Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table Of Contents

Table of Contents

Gallifrey API Spec:


Type

URI

Query Params

Description

GET

relationship/<ID>

t-k=Timestamp that specifies knowledge ie: when we received the assertion in Gallifrey

Retrieve a relationship by ID

GET

relationship/<ID>/lifespan

None

Retrieve all the timestamps for create, update, delete operations against this relationship

GET

entity/<ID>

t-k=Timestamp that specifies knowledge ie: when we received the assertion in Gallifrey

Retrieve an entity by ID

GET

entity/<ID>/lifespan

None

Retrieve all the timestamps for create, update, delete operations against this entity

PUT

relationship/<ID>

actor=name of the system making the assertion

changes-only=[true|false] if true, gallifrey will actually determine what has changed between the PUT payload and the most recent set of assertions for the relationship. If false, the entire PUT body will be considered as a new set of assertions whether something has changed or not.

create=[true|false] if true, Gallifrey assumes that this is a create request, if false it assumes it is an update

t-k=Timestamp that specifies knowledge ie: when we received the assertion in Gallifrey

Asserts that a relationship is to be created or updated (depending on the query parameters that are passed in). This API appends new assertions against the specified relationship.

PUT

entity/<ID>

actor=name of the system making the assertion

changes-only=[true|false] if true, gallifrey will actually determine what has changed between the PUT payload and the most recent set of assertions for the entity. If false, the entire PUT body will be considered as a new set of assertions whether something has changed or not.

create=[true|false] if true, Gallifrey assumes that this is a create request, if false it assumes it is an update

t-k=Timestamp that specifies knowledge ie: when we received the assertion in Gallifrey

Asserts that an entity is to be created or updated (depending on the query parameters that are passed in). This API appends new assertions against the specified relationship.

DELETE

relationship/<ID>

actor=name of the system making the assertion

t-k=Timestamp that specifies knowledge ie: when we received the assertion in Gallifrey

Asserts that a relationship has been deleted.

DELETE

entity/<ID>

actor=name of the system making the assertion

t-k=Timestamp that specifies knowledge ie: when we received the assertion in Gallifrey

Asserts that an entity has been deleted.

...