samvera / questioning_authority

Question your authorities
Other
54 stars 30 forks source link

add option to include authority details when getting list of authorities #234

Closed elrayle closed 5 years ago

elrayle commented 5 years ago

Simple Listing (what already exists)

http://localhost:3000/qa/list/linked_data/authorities http://localhost:3000/qa/list/linked_data/authorities?details=false

Produces output like...

[ 'oclc_fast', 'loc', ...]

Listing with Details (new)

http://localhost:3000/qa/list/linked_data/authorities?details=true

Produces output like...

Term with no subauthorities OR fetching term across subauthorities

{
  "label":"oclc_fast term (QA)",
  "uri":"urn:qa:term:oclc_fast",
  "authority":"oclc_fast",
  "action":"term",
  "language":["en"]
},

Search across subauthorities

{
  "label":"oclc_fast search (QA)",
  "uri":"urn:qa:search:oclc_fast",
  "authority":"oclc_fast",
  "action":"search",
  "language":["en"]
},

Search within a subauthority

{
  "label":"oclc_fast search topic (QA)",
  "uri":"urn:qa:search:oclc_fast:topic",
  "authority":"oclc_fast",
  "subauthority":"topic",
  "action":"search",
  "language":["en"]
},

NOTES ON LANGUAGE: