@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Amazon CloudSearch Domain
@version 2013-01-01
@auth AWS SigV4
@endpoints 3
@toc 2013-01-01(3)

@endpoint GET /2013-01-01/search?format=sdk&pretty=true
@required {q: str}
@optional {cursor: str, expr: str, facet: str, fq: str, highlight: str, partial: bool, q.options: str, q.parser: str, return: str, size: int(i64), sort: str, start: int(i64), stats: str}
@returns(200) {status: SearchStatus?{timems: int(i64)?, rid: str?}, hits: Hits?{found: int(i64)?, start: int(i64)?, cursor: str?, hit: [Hit]?}, facets: map<str,BucketInfo>?, stats: map<str,FieldStats>?}
@errors {500}

@endpoint GET /2013-01-01/suggest?format=sdk&pretty=true
@required {q: str, suggester: str}
@optional {size: int(i64)}
@returns(200) {status: SuggestStatus?{timems: int(i64)?, rid: str?}, suggest: SuggestModel?{query: str?, found: int(i64)?, suggestions: [SuggestionMatch]?}}
@errors {500}

@endpoint POST /2013-01-01/documents/batch?format=sdk
@required {Content-Type: str, documents: bytes}
@returns(200) {status: str?, adds: int(i64)?, deletes: int(i64)?, warnings: [DocumentServiceWarning]?}
@errors {500}

@end
