<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div>Hi Jason,<div class=""><br class=""></div><div class="">There is a GET /terms endpoint. It does a search and takes a q=.</div><div class=""><br class=""></div><div class="">There is no GET /terms/:id - I guess this is the one that’s giving you a Not Found.</div><div class=""><br class=""></div><div class="">And there is no POST /terms.</div><div class=""><br class=""></div><div class="">Here’s the controller:</div><div class=""><a href="https://github.com/archivesspace/archivesspace/blob/master/backend/app/controllers/term.rb" class="">https://github.com/archivesspace/archivesspace/blob/master/backend/app/controllers/term.rb</a></div><div class=""><br class=""></div><div class="">Terms aren’t really first order objects (they get managed via their parent object), so I’m not sure why they have a uri. For example:</div><div class=""><br class=""></div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">/terms q=Audio</div><div class="">{</div><div class=""> "first_page": 1,</div><div class=""> "last_page": 1,</div><div class=""> "this_page": 1,</div><div class=""> "results":</div><div class=""> [</div><div class=""> {</div><div class=""> "lock_version": 0,</div><div class=""> "term": "Audio",</div><div class=""> "created_by": "admin",</div><div class=""> "last_modified_by": "admin",</div><div class=""> "create_time": "2017-02-07T05:34:29Z",</div><div class=""> "system_mtime": "2017-02-07T05:34:29Z",</div><div class=""> "user_mtime": "2017-02-07T05:34:29Z",</div><div class=""> "term_type": "genre_form",</div><div class=""> "jsonmodel_type": "term",</div><div class=""> "uri": "/terms/3",</div><div class=""> "vocabulary": "/vocabularies/1"</div><div class=""> }</div><div class=""> ]</div><div class="">}</div><div class=""><br class=""></div></blockquote><div class="">You see it has a uri (/terms/3), but that is a bit of a lie because there is no corresponding endpoint. There could well be a good reason for this, but I’m not aware of it.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">James</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 10, 2017, at 6:40 AM, Jason Loeffler <<a href="mailto:j@minorscience.com" class="">j@minorscience.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Can anyone confirm whether the GET method for terms works? I'm getting 'Not Found'. Also, is there an undocumented POST method for terms?<div class=""><div class=""><br class=""></div><div class="">Thanks.</div><div class=""><br clear="all" class=""><div class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div class=""><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666" class="">Jason Loeffler</font></div><div class=""><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666" class="">Technology Consultant | </font><span style="color:rgb(102,102,102);font-family:garamond,serif" class="">The American Academy in Rome</span></div><div class=""><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666" class="">Minor Science | Application Development & Metadata Strategy</font></div><div class=""><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666" class="">Brooklyn, New York</font></div></div><div class=""><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666" class=""><a href="mailto:jason@minorscience.com" target="_blank" class="">jason@minorscience.com</a></font></div><div class=""><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666" class="">(347) 405-0826</font></div><div class=""><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666" class="">minorscience (Skype)</font></div><div class=""><br class=""><br class=""></div></div></div></div></div>
</div></div></div>
!DSPAM:589cc60444364107784971!
_______________________________________________<br class="">Archivesspace_Users_Group mailing list<br class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br class=""><br class=""><br class="">!DSPAM:589cc60444364107784971!<br class=""></div></blockquote></div><br class=""></div></body></html>