Skip to content

Handling upload of resources #6

@sbrossie

Description

@sbrossie

Current code generation will create apis that specify the content (String) of the resource instead of the path. Example with uploading a catalog becomes:

    final String resourcePathName = ...
    final String resourcePath = Resources.getResource(resourcePathName).getPath();
    final File catalogFile = new File(resourcePath);
    final String body = Files.toString(catalogFile, Charset.forName("UTF-8"));
    catalogApi.uploadCatalogXml(body, requestOptions);

Metadata

Metadata

Assignees

No one assigned

    Labels

    JAVAJava client generatorenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions