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.

  1. Look in the API Docs, what object module applies?
    • Is there more than one?
  2. Look at the HTTP method required (e.g. GET, POST, DELETE) for your action
  3. 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)
  4. Based on the API docs, what responses do we expect?
    • (e.g. HTTP Status code, actual JSON body returned)