5. Working with Agents
Our recipe
Each ArchivesSpace API Model tends to have its own nuances based on the
schema. Agents is no exception. Rely on the docs as much as you can.
When the docs fail there is the email list and you can experiment too.
When I first started working with ArchivesSpace documentation was thin and I used curl and jq.
- Look in the API Docs, what object module applies?
- Look at the HTTP method required (e.g. GET, POST, DELETE) for your action
- Look at any data that needs to be sent, noting how it is sent
- (e.g. a JSON blob or as part of a path)
- Based on the API docs, what responses do we expect?
- (e.g. HTTP Status code, actual JSON body returned)