adamsaghy commented on code in PR #5082: URL: https://github.com/apache/fineract/pull/5082#discussion_r2413677152
########## fineract-client-feign/src/main/java/org/apache/fineract/client/services/DocumentsApiFixed.java: ########## @@ -0,0 +1,144 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.fineract.client.services; + +import feign.Headers; +import feign.Param; +import feign.RequestLine; +import feign.Response; +import java.io.File; +import java.util.List; +import org.apache.fineract.client.models.DeleteEntityTypeEntityIdDocumentsResponse; +import org.apache.fineract.client.models.DocumentData; +import org.apache.fineract.client.models.PostEntityTypeEntityIdDocumentsResponse; +import org.apache.fineract.client.models.PutEntityTypeEntityIdDocumentsResponse; + +/** + * This class was originally generated by OpenAPI Generator (https://openapi-generator.tech), but then had to be + * manually edited to manually fix https://issues.apache.org/jira/browse/FINERACT-1227. If we could fix our OpenAPI / + * Swagger YAML generation from the JAX RS and OpenAPI annotation to have the correct notation for binary document files + * and images, then this could be removed again. + */ +public interface DocumentsApiFixed { Review Comment: Duplicate? ########## fineract-client-feign/src/main/java/org/apache/fineract/client/services/ImagesApi.java: ########## @@ -0,0 +1,51 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.fineract.client.services; + +import feign.Headers; +import feign.Param; +import feign.QueryMap; +import feign.RequestLine; +import feign.Response; +import java.io.File; +import java.util.Map; + +/** + * Client API (Feign) for /images. + * + * This class is entirely hand-written, inspired by DocumentsApiFixed, and from /images methods which currently end up + * in DefaultApi (see <a href="https://issues.apache.org/jira/browse/FINERACT-1222">FINERACT-1222</a>), but fixed for + * bugs in the code generation (see <a href="https://issues.apache.org/jira/browse/FINERACT-1227">FINERACT-1227</a>). + */ +public interface ImagesApi { Review Comment: Duplicate? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
