@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api VTEX Headless CMS
@base https://storeframework.myvtex.com
@version 0.31.2
@endpoints 3
@toc _v(3)

@endpoint GET /_v/cms/api/{projectId}
@required {projectId: str}
@returns(200) {contentTypes: [map]}
@errors {404, 500}

@endpoint GET /_v/cms/api/{projectId}/{content-type}
@required {projectId: str, content-type: str}
@optional {page: str, versionId: str, releaseId: str, filters[{field}]: str}
@returns(200) {hasNextPage: bool, totalItems: int, data: [map]}
@errors {404, 500}

@endpoint GET /_v/cms/api/{projectId}/{content-type}/{document-id}
@required {projectId: str, content-type: str, document-id: str}
@optional {versionId: str, releaseId: str}
@returns(200) {id: str, name: str, type: str, status: str, versionId: str, versionStatus: str, sections: [map]}
@errors {404, 500}

@end
