List Response

class moco_wrapper.util.response.ListResponse(response)

Class for handling responses where the response body is a json list.

The difference to moco_wrapper.util.response.PagedListResponse is that ListResponses are not paged.

data

Returns the list of object the response contains

Type:list

See also

items

items

Get the list of objects the response contains

Type:list
m = Moco()
project_list = m.Project.getlist()

for item in project_list.items:
    print(item)

See also

data

response

http response object