1
0
Fork 0
arangodb/Documentation/DocuBlocks/Rest/Views/get_api_views.md

32 lines
646 B
Markdown

@startDocuBlock get_api_views
@brief returns all Views
@RESTHEADER{GET /_api/view, List all Views, getViews:AllViews}
@RESTDESCRIPTION
Returns an object containing a listing of all Views in a database, regardless
of their type. It is an array of objects with the following attributes:
- *id*
- *name*
- *type*
@RESTRETURNCODES
@RESTRETURNCODE{200}
The list of Views
@EXAMPLES
Return information about all Views:
@EXAMPLE_ARANGOSH_RUN{RestViewGetAllViews}
var url = "/_api/view";
var response = logCurlRequest('GET', url);
assert(response.code === 200);
logJsonResponse(response);
@END_EXAMPLE_ARANGOSH_RUN
@endDocuBlock