public TodoListResponse getTodos ( String type , String status , UUID factSheetId , UUID userId , UUID workspaceId , Boolean getArchived , Integer size , Integer page ) throws ApiException { Object localVarPostBody = null ; // create path and map variables String localVarPath = "/todos" . replaceAll ( "\\{format\\}" , "json" ) ; // query params List < Pair > localVarQueryParams = new ArrayList < Pair > ( ) ; Map < String , String > localVarHeaderParams = new HashMap < String , String > ( ) ; Map < String , Object > localVarFormParams = new HashMap < String , Object > ( ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "type" , type ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "status" , status ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "factSheetId" , factSheetId ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "userId" , userId ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "workspaceId" , workspaceId ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "getArchived" , getArchived ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "size" , size ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "page" , page ) ) ; final String [ ] localVarAccepts = { "application/json" } ; final String localVarAccept = apiClient . selectHeaderAccept ( localVarAccepts ) ; final String [ ] localVarContentTypes = { "application/json" } ; final String localVarContentType = apiClient . selectHeaderContentType ( localVarContentTypes ) ; String [ ] localVarAuthNames = new String [ ] { "token" } ; GenericType < TodoListResponse > localVarReturnType = new GenericType < TodoListResponse > ( ) { } ; return apiClient . invokeAPI ( localVarPath , "GET" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; }
getTodos Retrieves all todos a user can read .