Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
dev:web_api:v2:fulltext_content [2013/11/05 17:55] – dstillman | dev:web_api:v2:fulltext_content [2013/11/05 19:16] – dstillman |
---|
GET <userOrGroupPrefix>/fulltext?newer=<version> | GET <userOrGroupPrefix>/fulltext?newer=<version> |
| |
<itemKey> should correspond to an existing attachment item. <version> should be the Last-Modified-Version returned from the previous check, or 0 if none. | ''<itemKey>'' should correspond to an existing attachment item. ''<version>'' should be the ''Last-Modified-Version'' returned from the previous check, or 0 if none. |
| |
Content-Type: application/json | Content-Type: application/json |
GET <userOrGroupPrefix>/items/<itemKey>/fulltext | GET <userOrGroupPrefix>/items/<itemKey>/fulltext |
| |
<itemKey> should correspond to an existing attachment item. | ''<itemKey>'' should correspond to an existing attachment item. |
| |
Content-Type: application/json | Content-Type: application/json |
}</code> | }</code> |
| |
'indexedChars' and 'totalChars' may be provided instead of 'indexedPages' and 'totalPages'. | ''indexedChars'' and ''totalChars'' may be provided instead of ''indexedPages'' and ''totalPages''. |
| |
^ Common responses ^^ | ^ Common responses ^^ |
}</code> | }</code> |
| |
<itemKey> should correspond to an existing attachment item. | ''<itemKey>'' should correspond to an existing attachment item. |
| |
'indexedPages' and 'totalPages' can be provided instead of 'indexedChars' and 'totalChars'. | ''indexedPages'' and ''totalPages'' can be provided instead of ''indexedChars'' and ''totalChars''. |
| |
^ Common responses ^^ | ^ Common responses ^^ |
| ''400 Bad Request'' | Invalid JSON was provided. | | | ''400 Bad Request'' | Invalid JSON was provided. | |
| ''404 Not Found'' | The item wasn't found or was not an attachment. | | | ''404 Not Found'' | The item wasn't found or was not an attachment. | |
| |
| ==== Searching for items by full-text content ==== |
| |
| See the ''q'' and ''qmode'' [[read_requests#search_parameters|search parameters]]. |