{"info":{"_postman_id":"d177cc8e-a0d6-452c-b1b2-abc1ad483854","name":"Asian Legacy Library API","description":"<html><head></head><body><p>This is the application programming interface (API) to the digital library of the Asian Legacy Library (ALL).</p>\n<h2 id=\"classes-of-resources\">Classes of Resources</h2>\n<p>The digital library manages 4 different resources <strong>Works, Persons, Subjects, and Items.</strong> Here an <em>Item</em> refers to a digital asset such as a scan image group, an input text transliteration or a translation. The <em>Item</em> has metadata which will be found in its related <em>Work</em>, <em>Person</em>, and / or <em>Subject</em> record.  More to follow... </p>\n<h2 id=\"data-model\">Data Model</h2>\n<p>Here is a <a href=\"https://all-library-docs.s3.us-west-2.amazonaws.com/asianlegacylibrary-data-model-2021-07.pdf\">link to the data model</a>. </p>\n<h2 id=\"inputs-and-outputs\">Inputs and Outputs</h2>\n<p>The API follows the REST protocol. There is an input URL with parameters as specified below.  The output of the API is JSON.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"10868360","collectionId":"d177cc8e-a0d6-452c-b1b2-abc1ad483854","publishedId":"TVeiCqJo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"122f43","highlight":"bbcc00"},"publishDate":"2021-10-11T18:44:14.000Z"},"item":[{"name":"Get Resource","event":[{"listen":"test","script":{"id":"9efa40e7-7a93-4223-9526-cb37fbb34f8a","exec":[""],"type":"text/javascript"}}],"id":"7bf9d2b8-ad18-4e8a-a619-50e24124632a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","description":"<p>Default response is JSON</p>\n","type":"text"}],"url":"https://api.asianlegacylibrary.org/resources/:UID?include_data=false&include_citation=false&include_related=false","description":"<p>The <code>/resource/:UID</code> endpoint returns a specified resource using the <code>UID</code> path parameter.  The UID is the universal identifier of the digital asset.</p>\n","urlObject":{"path":["resources",":UID"],"host":["https://api.asianlegacylibrary.org"],"query":[{"description":{"content":"<p>&lt; _Optional_ &gt;</p>\n<p>A boolean flag to include or exclude the text content of our digital assets such as input texts and translations. Defaults to false.</p>\n<p>Note that the payload of metadata is small (kb), whereas the text field of a digital asset can be large (mb).</p>\n<p>The text data is returned in a field called <code>bibframe:datasource</code>, _<strong>source[all:items][bibframe:datasource]</strong>. This refers to the fact that it is the text data of the digital asset (called an item) related to the work.</p>\n","type":"text/plain"},"key":"include_data","value":"false"},{"description":{"content":"<p>&lt; _Optional_ &gt;</p>\n<p>Boolean value to return a new object called <code>citation</code> with all fields required to build a proper citation for footnoting.</p>\n<p>Currently only the fields are returned and not a formatted string specific to any citation standard. This will evolve to be more sophisticated in the future.</p>\n","type":"text/plain"},"key":"include_citation","value":"false"},{"description":{"content":"<p>&lt; _Optional_ &gt;</p>\n<p>Boolean value to return other works found in <code>all:relatedworks</code></p>\n","type":"text/plain"},"key":"include_related","value":"false"}],"variable":[{"description":{"content":"<p>String value of the unique resource identifier.</p>\n","type":"text/plain"},"type":"any","value":"W.95015a","key":"UID"}]}},"response":[],"_postman_id":"7bf9d2b8-ad18-4e8a-a619-50e24124632a"},{"name":"Search for Resources","id":"51c73c81-c3db-4376-a84e-8d435c9a8342","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.asianlegacylibrary.org/resources?q=logic&filter=author:losang&search_fields=title,subject&highlights=false&page=1&page_size=20&include_aggs=source","description":"<p>The <code>/resources</code> endpoint returns a listing of resources. The endpoint can be used to search by terms or phrases, and / or to filter the resources by categories.  </p>\n<p>The endpoint executes a search in the metadata and / or within the digital asset itself, as directed by the parameters.</p>\n","urlObject":{"path":["resources"],"host":["https://api.asianlegacylibrary.org"],"query":[{"description":{"content":"<p>&lt; _Optional_, though one of __class__ or __q__ must be provided &gt; </p>\n<p>If the parameter is not provided then class must be provided and the response will include a listing of records of the specified class.</p>\n<p>A search query, either a term or a phrase. See below and the examples for more complex boolean and proximity queries. </p>\n<p><strong>PROXIMITY</strong> \n<em>this near that</em> ---------------------------</p>\n<p>Currently the proximity search can only be done in isolation, if you use it with booleans AND / OR / NOT you get some weird results, especially with the highlighting. Elasticsearch DSL seems to be constantly updating how proximity search is done so that maybe it'll fix this limitation...</p>\n<p>The general structure for the proximity call is: <code>near(this:that)~lines away from each other</code>. With the option to make the ordering specific to the order in which you write the terms/phrases.</p>\n<p>The example <code>near(bodhisattva:virtue)~1^</code> breaks down as follows =&gt; the term bodhisattva within 1 line of the term virtue (in that order). The <code>^</code> specifies ordering, omit it if order doesn't matter.</p>\n<p>The default <em>lines away from</em> is 4, a line is approximated to have 120 characters. If you set the <em>lines away from</em> to be 0 then it will only match terms right next to each other. The maximum <em>lines away from</em> is 10.</p>\n<p><strong>AND</strong> \n<em>this and that</em>, <em>all of these terms</em> ---------------------------</p>\n<p>The AND means the result must contain all the terms. To create an AND boolean query you simply give the API a comma separated list of terms. The list can be a single term or a phrase.</p>\n<p>The example <code>vows of a bodhisattva, virtue</code> breaks down as follows =&gt; the phrase <em>vows of a bodhisattva</em> and the term <em>virtue</em> must both exist in the document.</p>\n<p><strong>NOT</strong>\n<em>not this</em> ---------------------------</p>\n<p>The NOT means the result must <em>not</em> contain the term or phrase. To use with a single term you can simple negate the term with a dash. Whereas if you want to negate a phrase you must surround the phrase in parentheses.</p>\n<p>You can use it like the AND boolean, in the sense that you can chain them together because multiple NOT's means <em>not this AND not that</em></p>\n<p>The example <code>great, -(vows of a bodhisattva), -virtue</code> breaks down as follows =&gt; The term <em>great</em> must be there but not the phrase <em>vows of a bodhisattva</em> or the term <em>virtue</em>.</p>\n<p><strong>OR</strong> \n<em>this or that, any of these terms</em> ---------------------------</p>\n<p>The OR means the result can contain any one of these terms, it is the most open ended.</p>\n<p>You can add an OR between groups of terms, which is where the idea of a block comes from, <em>this block of terms OR this block of terms</em></p>\n<p>If it's more than a single term and there is a block of terms then it must be surrounded by parentheses.</p>\n<p>The example <code>(great and morality) or vows</code> breaks down as follows =&gt; The document must have either the terms <em>great</em> and <em>morality</em> OR just the term <em>vows</em>.</p>\n","type":"text/plain"},"key":"q","value":"logic"},{"description":{"content":"<p>&lt; _Optional_ &gt;</p>\n<p>Filter search by category. You can add multiple filters. You can also add multiple types within the same category with OR. For example, you can filter `assettype:(scans or translations).</p>\n<p>The keyword <code>exists</code> can be used to filter out results that do not have values for the category.</p>\n<p>You can also use the <code>-</code> dash to negate the filter, it then becomes a 'does not exist' or 'does not include' filter. For example, <code>author:exists</code> vs <code>author:-exists</code>  or <code>author:choney</code> vs <code>author:-choney</code>.  The structure of the filter is <code>category</code>:<code>(-)term|exists</code></p>\n<p>Available categories include:</p>\n<ul>\n<li><strong>author</strong>:</li>\n<li><strong>subject</strong>:</li>\n<li><strong>collection</strong>:</li>\n<li><strong>language</strong>:</li>\n<li><strong>items</strong>: Return works that have related items or digital assets, such as scans or input texts.</li>\n</ul>\n","type":"text/plain"},"key":"filter","value":"author:losang"},{"description":{"content":"<p>&lt; _Optional_ &gt;</p>\n<p>A comma separated list of fields to include in the search. Does nothing if <strong>q</strong> parameter is not provided. Defaults to all fields.  </p>\n<p>Possible values in <strong>bold</strong> below:</p>\n<ul>\n<li><em>Text Search</em><ul>\n<li><strong>data</strong>: search the full text of items (input texts and translations)</li>\n</ul>\n</li>\n<li><em>Author Search</em>:<ul>\n<li><strong>name</strong>: search person fields</li>\n</ul>\n</li>\n<li><em>Subject Search</em>:<ul>\n<li><strong>subject</strong>: search subject fields</li>\n</ul>\n</li>\n<li><em>Title Search</em>:<ul>\n<li><strong>title</strong>: search all title fields which include variant and colophon titles and include all languages </li>\n<li><strong>colophon</strong>: search only the colophon title field</li>\n<li><strong>variant</strong>: search only the variant title fields. Note that variant titles include language specific titles and colophon titles</li>\n</ul>\n</li>\n<li><em>Language Specific Fields</em>:<ul>\n<li><strong>eng</strong>: search fields marked as ENGLISH</li>\n<li><strong>skt</strong>: search fields marked as SANSKRIT</li>\n</ul>\n</li>\n</ul>\n","type":"text/plain"},"key":"search_fields","value":"title,subject"},{"description":{"content":"<p>&lt;_Optional_&gt;\nReturn HTML formatted results with <code>&lt;em&gt;</code> tags surrounding found terms in text.\nDefaults to <code>false</code></p>\n<p>Returns a new object outside of the <code>_source</code> object, called <code>highlight</code>. Specifically, to be used by front end display.</p>\n","type":"text/plain"},"key":"highlights","value":"false"},{"description":{"content":"<p>Page offset, each page returns $page_size results, defaults to <code>1</code></p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Number of results to return per page, defaults to <code>10</code></p>\n","type":"text/plain"},"key":"page_size","value":"20"},{"description":{"content":"<p>&lt; _Optional_ &gt;</p>\n<p>A comma separated list of aggregations for the returned search results. Provides an overview of all results returned under a new object called <code>aggregations</code>. </p>\n<p>For instance, you can request <em>source</em> aggregations with your results, and this will return the total number of current results from each of our <em>source libraries</em>. </p>\n<p>Since the search results returned to the client are paginated it is quite possible that the client will not have a complete dataset from which to run it's own summarization.</p>\n<p><strong>MISSING VALUES</strong>: If there is no associated category for a record then it is considered <em>missing</em> as opposed to <em>N/A</em> or <em>null</em>. A separate object is passed back named _'{category}<em>missingvalues'</em> with the number of returned documents without that category specification.</p>\n<p>Currently it is possible to get aggregations for:</p>\n<ul>\n<li><strong>source</strong>: The libraries from which our works and items are sourced.</li>\n<li><strong>collection_acip</strong>: The main categories of collections under which the <em>input texts</em> fall. These are: <em>Sungbum</em>, <em>Kangyur</em>, and <em>Tengyur</em>. </li>\n<li><strong>subjecttree</strong>: The ACIP subjects in Tibetan (ACIP transliteration).</li>\n<li><strong>subjecttree_eng</strong>: The ACIP subjects in English translation.</li>\n<li><strong>digitalright</strong>: The digital rights attached to the digital asset, currently it is either <em>public domain</em> or <em>copyright</em>.</li>\n<li><strong>assettype</strong>: The digital asset (<em>item</em>) type associated with the bibliographic <em>work</em> if there is one. Currently our library contains asset types 1) scans, 2) input texts, and 3) translations.</li>\n<li><strong>author</strong>: Validated authors for our works. Note that there is also a person field, which may or may not be a validated author. Validated authors most often have variant names, and names translated into English.</li>\n<li><strong>author_eng</strong>: Validated author names (as above) translated into English.</li>\n<li><strong>person</strong>: As stated above, a person here is defined as an author, they have been documented as the works author, but they have not been validated, there may be misspellings, or multiple spellings of the same author etc.</li>\n</ul>\n","type":"text/plain"},"key":"include_aggs","value":"source"}],"variable":[]}},"response":[{"id":"959fb508-0881-4b1a-bd16-18f069c6287c","name":"Proximity - Near","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.asianlegacylibrary.org/resources?q=near(bodhisattva:virtue)~1","host":["https://api.asianlegacylibrary.org"],"path":["resources"],"query":[{"key":"q","value":"near(bodhisattva:virtue)~1","description":"__PROXIMITY__ \n_this near that_\nCurrently the proximity search can only be done in isolation, if you use it with booleans AND / OR / NOT you get some weird results, especially with the highlighting. Elasticsearch DSL seems to be constantly updating how proximity search is done so that maybe it'll fix this limitation...\nThe general structure for the proximity call is: near(this:that)~lines away from each other\nThe example __near(bodhisattva:virtue)~1__ breaks down as follows => the term bodhisattva within 1 line of the term virtue (in any order)\nCurrently we don't support the ordering of the words but could easily add that\nThe default _lines away from_ is 4, a line is approximated to have 120 characters. If you set the _lines away from_ to be 0 then it will only match terms right next to each other."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"total\": {\r\n    \"value\": 1,\r\n    \"relation\": \"eq\"\r\n  },\r\n  \"max_score\": 0.5967256,\r\n  \"hits\": [\r\n    {\r\n      \"_index\": \"v4_works_test\",\r\n      \"_type\": \"_doc\",\r\n      \"_id\": \"W.95208a\",\r\n      \"_score\": 0.5967256,\r\n      \"_source\": {\r\n        \"all:items\": [\r\n          {\r\n            \"bibframe:identifier@item\": \"I.95208a\"\r\n          }\r\n        ],\r\n        \"bibframe:person\": \"SER SMAD MKHAN RIN PO CHE DGE BSHES BLO BZANG MTHAR PHYIN MCHOG\",\r\n        \"bibframe:identifier@work\": \"W.95208a\",\r\n        \"all:catalognumber\": \"S00199(aEN)\",\r\n        \"bibframe:varianttitle@eng\": \"A Commentary on Guru Yoga\",\r\n        \"all:chklevel\": \"A\",\r\n        \"bibframe:role@author\": [\r\n          {\r\n            \"bibframe:identifier@person\": \"P.222\",\r\n            \"bibframe:note@person\": null,\r\n            \"bibframe:name@eng\": \"Sera Mey Khen Rinpoche Geshe Losang Tarchin\",\r\n            \"bibframe:name\": \"SER SMAD MKHAN RIN PO CHE DGE BSHES BLO BZANG MTHAR PHYIN MCHOG\",\r\n            \"bibframe:variantname\": [\r\n              \"SER SMAD MKHAN ZUR RIN PO CHE DGE BSHES BLO BZANG MTHAR PHYIN\",\r\n              \"DGE BSHES BLO BZANG MTHAR PHYIN\",\r\n              \"SER SMAD MKHAN RIN PO CHE DGE BSHES BLO BZANG MTHAR PHYIN\"\r\n            ],\r\n            \"bibframe:date@authdates\": \"1921-2004\",\r\n            \"bibframe:name@skt\": null,\r\n            \"bibframe:variantname@skt\": null,\r\n            \"bibframe:variantname@eng\": [\r\n              \"Sera Mey Khen Rinpoche Geshe Losang Tharchin\",\r\n              \"Geshe Losang Tarchin\",\r\n              \"Khen Rinpoche Geshe Losang Tharchin\"\r\n            ]\r\n          }\r\n        ],\r\n        \"bibframe:note@description\": \"Based on lectures given in 1976 in Washington, DC\",\r\n        \"all:catref\": \"95208a\",\r\n        \"bibframe:language\": \"EN\",\r\n        \"bibframe:note@notes\": \"Text in English\",\r\n        \"bibframe:collection\": \"SB\"\r\n      }\r\n    }\r\n  ]\r\n}"},{"id":"32fc112b-72d9-45be-9b95-4cd34a921a7a","name":"Boolean - And","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.asianlegacylibrary.org/resources?q=vows of a bodhisattva,virtue","host":["https://api.asianlegacylibrary.org"],"path":["resources"],"query":[{"key":"q","value":"vows of a bodhisattva,virtue","description":"__AND__\n_this and that_, _all of these terms_\nThe AND means the result must contain all the terms. To create an AND boolean query you simply give the API a comma separated list of terms. The list can be a single term or a phrase.\nThe example __great,bodhisattva,virtue__ breaks down as follows => the terms great and bodhisattva and virtue must all exist in the document.\n"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"total\": {\r\n    \"value\": 1,\r\n    \"relation\": \"eq\"\r\n  },\r\n  \"max_score\": 13.194616,\r\n  \"hits\": [\r\n    {\r\n      \"_index\": \"v4_works_test\",\r\n      \"_type\": \"_doc\",\r\n      \"_id\": \"W.96857a\",\r\n      \"_score\": 13.194616,\r\n      \"_source\": {\r\n        \"all:items\": [\r\n          {\r\n            \"bibframe:identifier@item\": \"I.96857a\"\r\n          }\r\n        ],\r\n        \"bibframe:identifier@work\": \"W.96857a\",\r\n        \"all:catalognumber\": \"R01000(fEN)\",\r\n        \"bibframe:varianttitle@eng\": \"Current Master Catalog of Titles Input by ACIP\",\r\n        \"all:chklevel\": \"E\",\r\n        \"bibframe:note@description\": \"Details and status of all the books input by ACIP up to the present date; this is an ASCII or text file version of the information which appears in the database program included in the current AsiaView interface distributed with all ACIP releases; please note that this file now also includes information about titles currently on order and not yet received\",\r\n        \"all:catref\": \"96857a\",\r\n        \"bibframe:language\": \"EN\",\r\n        \"bibframe:collection\": \"RCE\"\r\n      }\r\n    }\r\n  ]\r\n}"},{"id":"bed019fc-ddb8-4b8e-aa72-0f515f3e6962","name":"Boolean - Not","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.asianlegacylibrary.org/resources?q=great,-(vows of a bodhisattva),-virtue","host":["https://api.asianlegacylibrary.org"],"path":["resources"],"query":[{"key":"q","value":"great,-(vows of a bodhisattva),-virtue","description":"__NOT__\n_not this_ ---------------------------\nThe NOT means the result must _not_ contain the term or phrase. To use with a single term you can simple negate the term with a dash. Whereas if you want to negate a phrase you must surround the phrase in parentheses.\nYou can use it like the AND boolean, in the sense that you can chain them together because multiple NOT's means _not this AND not that_\nThe example __great, -(vows of a bodhisattva), -virtue__ breaks down as follows => The term _great_ must be there but not the phrase _vows of a bodhisattva_ or the term _virtue_."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"total\": {\r\n    \"value\": 1,\r\n    \"relation\": \"eq\"\r\n  },\r\n  \"max_score\": 13.705299,\r\n  \"hits\": [\r\n    {\r\n      \"_index\": \"v4_works_test\",\r\n      \"_type\": \"_doc\",\r\n      \"_id\": \"W.ISKS1RC1562.001\",\r\n      \"_score\": 13.705299,\r\n      \"_source\": {\r\n        \"all:items\": [\r\n          {\r\n            \"bibframe:itemof@work\": \"W.ISKS1RC1562.001\",\r\n            \"bibframe:electroniclocator\": \"https://all-library-manifests.s3.us-west-2.amazonaws.com/ISKS1RC1562.IG.ISKS1RC1562.001.manifest.json\",\r\n            \"bibframe:identifier@item\": \"ISKS1RC1562\",\r\n            \"bibframe:haspart@item\": \"IG.ISKS1RC1562.001\"\r\n          }\r\n        ],\r\n        \"all:script\": \"Roman\",\r\n        \"bibframe:person\": \"E.Washburn Hopkins\",\r\n        \"bibframe:source\": \"Ramachandra\",\r\n        \"bibframe:identifier@work\": \"W.ISKS1RC1562.001\",\r\n        \"bibframe:maintitle\": \"Great epic of India\",\r\n        \"all:subjectitems@eng\": [\r\n          \"General reading\"\r\n        ],\r\n        \"all:lines\": \"35\",\r\n        \"all:series\": \"1562\",\r\n        \"bibframe:language\": \"English\",\r\n        \"bibframe:subject@eng\": \"General reading\",\r\n        \"all:material\": \"Ptd.Paper\",\r\n        \"all:condition\": \"Good\"\r\n      }\r\n    }\r\n  ]\r\n}"},{"id":"4ca18e2d-187d-406c-b3d3-2f9d385efbf8","name":"Boolean - Or","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.asianlegacylibrary.org/resources?q=(great and morality) or vows","host":["https://api.asianlegacylibrary.org"],"path":["resources"],"query":[{"key":"q","value":"(great and morality) or vows","description":"__OR__ \n_this or that, any of these terms_ ---------------------------\nThe OR means the result can contain any one of these terms, it is the most open ended.\nYou can add an OR between groups of terms, which is where the idea of a block comes from, _this block of terms OR this block of terms_\nIf it's more than a single term and there is a block of terms then it must be surrounded by parentheses.\nThe example __(great and morality) or vows__ breaks down as follows => The document must have either the terms _great_ and _morality_ OR just the term _vows_."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"total\": {\r\n    \"value\": 1,\r\n    \"relation\": \"eq\"\r\n  },\r\n  \"max_score\": 35.075207,\r\n  \"hits\": [\r\n    {\r\n      \"_index\": \"v4_works_test\",\r\n      \"_type\": \"_doc\",\r\n      \"_id\": \"W.709882a\",\r\n      \"_score\": 35.075207,\r\n      \"_source\": {\r\n        \"all:items\": [\r\n          {\r\n            \"bibframe:identifier@item\": \"I.709882a\"\r\n          }\r\n        ],\r\n        \"bibframe:person\": \"BDE CHEN SNYING PO\",\r\n        \"bibframe:identifier@work\": \"W.709882a\",\r\n        \"all:catalognumber\": \"S00069(eEN)\",\r\n        \"bibframe:varianttitle@eng\": \"Preparing for Tantra -- The Mountain of Blessings\",\r\n        \"all:chklevel\": \"E\",\r\n        \"bibframe:role@author\": [\r\n          {\r\n            \"bibframe:identifier@person\": \"P.162\",\r\n            \"bibframe:note@person\": \"Old TSD Schools table tree: \\r\\n\\r\\n-- Bka'-gdams-pa\\r\\n\\r\\n-- Dga'-ldan-pa\\r\\n \\r\\nming mdzod records place of birth as lha-sa nub phyogs g.yu-thog shar.\\r\\n1888, entered se-ra smad.\\r\\n1895, took his gling-bsre degree.\\r\\n1896, entered rgyud-stod.\\r\\n1897, took monastic vows from phur-bu-lcog.\\r\\n1918, enlisted to work on the lha-sa bka' 'gyur project at the nor-bu-gling-ka and created the dkar chag (incomplete).\\r\\nBuilt the nyang bran-phu rtag-brtan ri-khrod.\\r\\ngsung 'bum in 12 volumes.\",\r\n            \"bibframe:name@eng\": \"Dechen Nyingpo\",\r\n            \"bibframe:name\": \"BDE CHEN SNYING PO\",\r\n            \"bibframe:variantname\": [\r\n              \"PHA BONG KHA PA BDE CHEN SNYING PO\",\r\n              \"PHA BONG KHA RIN PO CHE\",\r\n              \"SKYABS RJE PHA BONG KHA BDE CHEN SNYING PO\",\r\n              \"NGAG DBANG RAB BRTAN\",\r\n              \"BYAMS PA BSTAN 'DZIN 'PHRIN LAS\"\r\n            ],\r\n            \"bibframe:date@authdates\": \"1878-1941\",\r\n            \"bibframe:name@skt\": null,\r\n            \"bibframe:variantname@skt\": null,\r\n            \"bibframe:variantname@eng\": [\r\n              \"Pabongka Dechen Nyingpo\",\r\n              \"Pabongka Rinpoche\",\r\n              \"Kyabje Pabongka Dechen Nyingpo\",\r\n              \"Ngawang Rapten\",\r\n              \"Jampa Tenzin Trinley\"\r\n            ]\r\n          }\r\n        ],\r\n        \"all:catref\": \"709882a\",\r\n        \"bibframe:language\": \"EN\",\r\n        \"bibframe:collection\": \"ACM\"\r\n      }\r\n    }\r\n  ]\r\n}"}],"_postman_id":"51c73c81-c3db-4376-a84e-8d435c9a8342"},{"name":"Get Resource Summaries","id":"9d40393a-8fc7-4657-98fa-2230131ca9dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.asianlegacylibrary.org/resources/summarize?agg_field=source&page_size=50&sort=key:asc","description":"<p>The <code>/resources/summarize</code> endpoint returns three objects:</p>\n<ol>\n<li><strong>TermsTotalCount</strong>, the total sum of records with any non-null value assigned to the metadata field.</li>\n<li><strong>TermsCardinality</strong>, the number of unique terms within that metadata field</li>\n<li><strong>TermsListing</strong>, an array of objects that describe each unique term and its record count.</li>\n</ol>\n","urlObject":{"path":["resources","summarize"],"host":["https://api.asianlegacylibrary.org"],"query":[{"description":{"content":"<p>The metadata field on which to aggregate and summarize.</p>\n<p>Currently it is possible to get aggregations for:</p>\n<ul>\n<li><strong>source</strong>: The libraries from which our works and items are sourced.</li>\n<li><strong>collection:acip</strong>: The main categories of collections under which the <em>input texts</em> fall. These are: <em>Sungbum</em>, <em>Kangyur</em>, and <em>Tengyur</em>. </li>\n<li><strong>collection:ramachandra</strong>: The subject categories of the Ramachandra collection.</li>\n<li><strong>digitalright</strong>: The digital rights attached to the digital asset, currently it is either <em>public domain</em> or <em>copyright</em>.</li>\n<li><strong>assettype</strong>: The digital asset (<em>item</em>) type associated with the bibliographic <em>work</em> if there is one. Currently our library contains asset types 1) scans, 2) input texts, and 3) translations.</li>\n</ul>\n","type":"text/plain"},"key":"agg_field","value":"source"},{"description":{"content":"<p>The maximum number of returned results per page.</p>\n","type":"text/plain"},"key":"page_size","value":"50"},{"description":{"content":"<p>When sorting summaries you can sort by either the aggregation <em>key</em> which is the category term itself or by <em>'doc_count'</em> which is the number of documents categorized by that term.</p>\n<p>You can specify the direction of the sort as well with the standard <em>asc</em> and <em>desc</em> flags. Default is <em>asc</em>.</p>\n<p>Separate the sort type and sort direction by <code>:</code>, so that the call looks something like <strong>count:desc</strong> or <strong>key:asc</strong>, etc.</p>\n","type":"text/plain"},"key":"sort","value":"key:asc"}],"variable":[]}},"response":[],"_postman_id":"9d40393a-8fc7-4657-98fa-2230131ca9dd"},{"name":"Get Subject Tree","id":"0c146aa1-7db8-4707-83a1-c67253fd1a23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.asianlegacylibrary.org/resources/subjecttree?language=bo","description":"<p>Return the ACIP subject tree in either Tibetan or English. To specify language use the <strong>language</strong> parameter with ISO language codes, <em>bo</em> for Tibetan and <em>en</em> for English. </p>\n<p>The returned numbers with each branch/leaf are the current number of docs in the library under that subject.</p>\n<p>To reconstruct the subject path, join each leaf together with <em>'/'</em></p>\n","urlObject":{"path":["resources","subjecttree"],"host":["https://api.asianlegacylibrary.org"],"query":[{"description":{"content":"<p>&lt; _Optional_ &gt;</p>\n<p>Default language is <em>bo</em> (ISO 639-1 Code for Standard Tibetan)</p>\n<p><strong>bo</strong>: returns Tibetan subject tree in ACIP transliteration (Roman characters).</p>\n<p><strong>en</strong>: returns English subject tree.\n </p>\n","type":"text/plain"},"key":"language","value":"bo"}],"variable":[]}},"response":[],"_postman_id":"0c146aa1-7db8-4707-83a1-c67253fd1a23"},{"name":"Download Resource","id":"e25429f1-cb06-4f7d-a18a-ebcb5576ded1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.asianlegacylibrary.org/resources/download/:UID?format=txt&force_download=false","description":"<p>Downloads resource data.</p>\n<p>Returns either HTML with download links, or if the <em>'force_download'</em> parameter is set to true then it will return the data itself.</p>\n<p>There are currently two formats available, <em>JSON</em> and <em>txt</em>. The <em>txt</em> option is only available on the <strong>input texts</strong> and <strong>translations</strong> asset type resources that contain text data.</p>\n","urlObject":{"path":["resources","download",":UID"],"host":["https://api.asianlegacylibrary.org"],"query":[{"description":{"content":"<p>&lt; _Optional_ &gt;</p>\n<p>The requested format of data. </p>\n<p>Note that <em>format</em> is required if <em>'force_download'</em> is set to <em>true</em>.</p>\n<ol>\n<li><p><strong>json</strong>:  All resources can return JSON, which will be their associated metadata.</p>\n</li>\n<li><p><strong>txt</strong>: Works that have an associated digital asset type of either <em>input texts</em> or <em>translations</em> will have associated text, but only if the digital rights is in the public domain will there be an option to download the text itself in <em>txt</em> format.</p>\n</li>\n</ol>\n","type":"text/plain"},"key":"format","value":"txt"},{"description":{"content":"<p>&lt; _Optional_ &gt;</p>\n<p>Defaults to <em>false</em></p>\n<p>If set to <em>true</em> then the requested format is automatically downloaded, if it exists.</p>\n<p>When <em>false</em> HTML is returned with links to available downloads.</p>\n","type":"text/plain"},"key":"force_download","value":"false"}],"variable":[{"description":{"content":"<p>&lt; _Required_ &gt;</p>\n<p>The resource UID.</p>\n","type":"text/plain"},"type":"any","value":"W.95019a","key":"UID"}]}},"response":[],"_postman_id":"e25429f1-cb06-4f7d-a18a-ebcb5576ded1"},{"name":"Search Resource","id":"5fad1d39-fbfc-4f87-bef8-2e38d49bc34a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.asianlegacylibrary.org/resources/:UID/search?q=logic&search_fields=title,subject","description":"<p>Search a resource for terms and phrases and return the resource with the search matches enclosed in the HTML tags <code>&lt;em&gt;</code> for highlighting.</p>\n","urlObject":{"path":["resources",":UID","search"],"host":["https://api.asianlegacylibrary.org"],"query":[{"description":{"content":"<p>See <code>Search for Resources</code> endpoint for lengthy description for <strong>q</strong> parameter.</p>\n","type":"text/plain"},"key":"q","value":"logic"},{"description":{"content":"<p>See <code>Search for Resources</code> endpoint for description for <strong>search_fields</strong> parameter.</p>\n","type":"text/plain"},"key":"search_fields","value":"title,subject"}],"variable":[{"description":{"content":"<p>Resource Work UID</p>\n","type":"text/plain"},"type":"any","value":"W.667819a","key":"UID"}]}},"response":[],"_postman_id":"5fad1d39-fbfc-4f87-bef8-2e38d49bc34a"}],"event":[{"listen":"prerequest","script":{"id":"482f42da-0ee6-4f75-8eca-6e4b78d05223","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0399607f-4321-489c-8663-e7e715af0da7","type":"text/javascript","exec":[""]}}],"variable":[{"key":"dev_url","value":"http://localhost:5000"},{"key":"api_url","value":"https://api.asianlegacylibrary.org"},{"key":"uid","value":"W.95015a"},{"key":"class","value":"works"},{"key":"search_fields","value":"title,subject"},{"key":"query","value":"logic"},{"key":"include_data","value":"false"},{"key":"summary_field","value":"source"},{"key":"summary_sort","value":"key:asc"},{"key":"include_aggs","value":"source"}]}