Skip to content

Commit

Permalink
Fix API.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Sep 1, 2024
1 parent 582a999 commit 3ea81b8
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 80 deletions.
11 changes: 1 addition & 10 deletions openapi-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,4 @@ additionalProperties:
invokerPackage: com.squidex.api.core
modelPackage: com.squidex.api.types
useRuntimeException: true
useSingleRequestParameter: true

nameMappings:
file2: uploadFile
X-Fields: fields
X-Flatten: flatten
X-Languages: languages
X-NoSlowTotal: noSlowTotal
X-NoTotal: noTotal
X-Unpublished: unpublished
useSingleRequestParameter: true
8 changes: 4 additions & 4 deletions src/main/java/com/squidex/api/core/api/AssetsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2320,11 +2320,11 @@ private okhttp3.Call getAssetsCall(String parentId, String ids, String q, BigDec
}

if (noTotal != null) {
localVarHeaderParams.put("noTotal", localVarApiClient.parameterToString(noTotal));
localVarHeaderParams.put("X-NoTotal", localVarApiClient.parameterToString(noTotal));
}

if (noSlowTotal != null) {
localVarHeaderParams.put("noSlowTotal", localVarApiClient.parameterToString(noSlowTotal));
localVarHeaderParams.put("X-NoSlowTotal", localVarApiClient.parameterToString(noSlowTotal));
}

final String[] localVarAccepts = {
Expand Down Expand Up @@ -2580,11 +2580,11 @@ private okhttp3.Call getAssetsPostCall(QueryDto queryDto, Boolean noTotal, Boole
Map<String, Object> localVarFormParams = new HashMap<String, Object>();

if (noTotal != null) {
localVarHeaderParams.put("noTotal", localVarApiClient.parameterToString(noTotal));
localVarHeaderParams.put("X-NoTotal", localVarApiClient.parameterToString(noTotal));
}

if (noSlowTotal != null) {
localVarHeaderParams.put("noSlowTotal", localVarApiClient.parameterToString(noSlowTotal));
localVarHeaderParams.put("X-NoSlowTotal", localVarApiClient.parameterToString(noSlowTotal));
}

final String[] localVarAccepts = {
Expand Down
Loading

0 comments on commit 3ea81b8

Please sign in to comment.