@@ -89,7 +89,7 @@ public okhttp3.Call getElementByProjectCommitIdCall(UUID projectId, UUID commitI
89
89
Map <String , String > localVarCookieParams = new HashMap <String , String >();
90
90
Map <String , Object > localVarFormParams = new HashMap <String , Object >();
91
91
final String [] localVarAccepts = {
92
- "application/json"
92
+ "application/ld+json" , "application/ json"
93
93
};
94
94
final String localVarAccept = localVarApiClient .selectHeaderAccept (localVarAccepts );
95
95
if (localVarAccept != null ) {
@@ -234,7 +234,7 @@ public okhttp3.Call getElementsByProjectCommitCall(UUID projectId, UUID commitId
234
234
Map <String , String > localVarCookieParams = new HashMap <String , String >();
235
235
Map <String , Object > localVarFormParams = new HashMap <String , Object >();
236
236
final String [] localVarAccepts = {
237
- "application/json"
237
+ "application/ld+json" , "application/ json"
238
238
};
239
239
final String localVarAccept = localVarApiClient .selectHeaderAccept (localVarAccepts );
240
240
if (localVarAccept != null ) {
@@ -340,4 +340,141 @@ public okhttp3.Call getElementsByProjectCommitAsync(UUID projectId, UUID commitI
340
340
localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
341
341
return localVarCall ;
342
342
}
343
+ /**
344
+ * Build call for getRootsByProjectCommit
345
+ * @param projectId ID of the project (required)
346
+ * @param commitId ID of the commit (required)
347
+ * @param _callback Callback for upload/download progress
348
+ * @return Call to execute
349
+ * @throws ApiException If fail to serialize the request body object
350
+ * @http.response.details
351
+ <table summary="Response Details" border="1">
352
+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
353
+ <tr><td> 200 </td><td> Ok </td><td> - </td></tr>
354
+ <tr><td> 404 </td><td> Not found. </td><td> - </td></tr>
355
+ <tr><td> 415 </td><td> The requested content type is not acceptable. </td><td> - </td></tr>
356
+ <tr><td> 500 </td><td> Internal server error. </td><td> - </td></tr>
357
+ <tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
358
+ </table>
359
+ */
360
+ public okhttp3 .Call getRootsByProjectCommitCall (UUID projectId , UUID commitId , final ApiCallback _callback ) throws ApiException {
361
+ Object localVarPostBody = null ;
362
+
363
+ // create path and map variables
364
+ String localVarPath = "/projects/{projectId}/commits/{commitId}/roots"
365
+ .replaceAll ("\\ {" + "projectId" + "\\ }" , localVarApiClient .escapeString (projectId .toString ()))
366
+ .replaceAll ("\\ {" + "commitId" + "\\ }" , localVarApiClient .escapeString (commitId .toString ()));
367
+
368
+ List <Pair > localVarQueryParams = new ArrayList <Pair >();
369
+ List <Pair > localVarCollectionQueryParams = new ArrayList <Pair >();
370
+ Map <String , String > localVarHeaderParams = new HashMap <String , String >();
371
+ Map <String , String > localVarCookieParams = new HashMap <String , String >();
372
+ Map <String , Object > localVarFormParams = new HashMap <String , Object >();
373
+ final String [] localVarAccepts = {
374
+ "application/ld+json" , "application/json"
375
+ };
376
+ final String localVarAccept = localVarApiClient .selectHeaderAccept (localVarAccepts );
377
+ if (localVarAccept != null ) {
378
+ localVarHeaderParams .put ("Accept" , localVarAccept );
379
+ }
380
+
381
+ final String [] localVarContentTypes = {
382
+
383
+ };
384
+ final String localVarContentType = localVarApiClient .selectHeaderContentType (localVarContentTypes );
385
+ localVarHeaderParams .put ("Content-Type" , localVarContentType );
386
+
387
+ String [] localVarAuthNames = new String [] { };
388
+ return localVarApiClient .buildCall (localVarPath , "GET" , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarCookieParams , localVarFormParams , localVarAuthNames , _callback );
389
+ }
390
+
391
+ @ SuppressWarnings ("rawtypes" )
392
+ private okhttp3 .Call getRootsByProjectCommitValidateBeforeCall (UUID projectId , UUID commitId , final ApiCallback _callback ) throws ApiException {
393
+
394
+ // verify the required parameter 'projectId' is set
395
+ if (projectId == null ) {
396
+ throw new ApiException ("Missing the required parameter 'projectId' when calling getRootsByProjectCommit(Async)" );
397
+ }
398
+
399
+ // verify the required parameter 'commitId' is set
400
+ if (commitId == null ) {
401
+ throw new ApiException ("Missing the required parameter 'commitId' when calling getRootsByProjectCommit(Async)" );
402
+ }
403
+
404
+
405
+ okhttp3 .Call localVarCall = getRootsByProjectCommitCall (projectId , commitId , _callback );
406
+ return localVarCall ;
407
+
408
+ }
409
+
410
+ /**
411
+ * Get root elements by project and commit
412
+ *
413
+ * @param projectId ID of the project (required)
414
+ * @param commitId ID of the commit (required)
415
+ * @return List<Element>
416
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
417
+ * @http.response.details
418
+ <table summary="Response Details" border="1">
419
+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
420
+ <tr><td> 200 </td><td> Ok </td><td> - </td></tr>
421
+ <tr><td> 404 </td><td> Not found. </td><td> - </td></tr>
422
+ <tr><td> 415 </td><td> The requested content type is not acceptable. </td><td> - </td></tr>
423
+ <tr><td> 500 </td><td> Internal server error. </td><td> - </td></tr>
424
+ <tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
425
+ </table>
426
+ */
427
+ public List <Element > getRootsByProjectCommit (UUID projectId , UUID commitId ) throws ApiException {
428
+ ApiResponse <List <Element >> localVarResp = getRootsByProjectCommitWithHttpInfo (projectId , commitId );
429
+ return localVarResp .getData ();
430
+ }
431
+
432
+ /**
433
+ * Get root elements by project and commit
434
+ *
435
+ * @param projectId ID of the project (required)
436
+ * @param commitId ID of the commit (required)
437
+ * @return ApiResponse<List<Element>>
438
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
439
+ * @http.response.details
440
+ <table summary="Response Details" border="1">
441
+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
442
+ <tr><td> 200 </td><td> Ok </td><td> - </td></tr>
443
+ <tr><td> 404 </td><td> Not found. </td><td> - </td></tr>
444
+ <tr><td> 415 </td><td> The requested content type is not acceptable. </td><td> - </td></tr>
445
+ <tr><td> 500 </td><td> Internal server error. </td><td> - </td></tr>
446
+ <tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
447
+ </table>
448
+ */
449
+ public ApiResponse <List <Element >> getRootsByProjectCommitWithHttpInfo (UUID projectId , UUID commitId ) throws ApiException {
450
+ okhttp3 .Call localVarCall = getRootsByProjectCommitValidateBeforeCall (projectId , commitId , null );
451
+ Type localVarReturnType = new TypeToken <List <Element >>(){}.getType ();
452
+ return localVarApiClient .execute (localVarCall , localVarReturnType );
453
+ }
454
+
455
+ /**
456
+ * Get root elements by project and commit (asynchronously)
457
+ *
458
+ * @param projectId ID of the project (required)
459
+ * @param commitId ID of the commit (required)
460
+ * @param _callback The callback to be executed when the API call finishes
461
+ * @return The request call
462
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
463
+ * @http.response.details
464
+ <table summary="Response Details" border="1">
465
+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
466
+ <tr><td> 200 </td><td> Ok </td><td> - </td></tr>
467
+ <tr><td> 404 </td><td> Not found. </td><td> - </td></tr>
468
+ <tr><td> 415 </td><td> The requested content type is not acceptable. </td><td> - </td></tr>
469
+ <tr><td> 500 </td><td> Internal server error. </td><td> - </td></tr>
470
+ <tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
471
+ </table>
472
+ */
473
+ public okhttp3 .Call getRootsByProjectCommitAsync (UUID projectId , UUID commitId , final ApiCallback <List <Element >> _callback ) throws ApiException {
474
+
475
+ okhttp3 .Call localVarCall = getRootsByProjectCommitValidateBeforeCall (projectId , commitId , _callback );
476
+ Type localVarReturnType = new TypeToken <List <Element >>(){}.getType ();
477
+ localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
478
+ return localVarCall ;
479
+ }
343
480
}
0 commit comments