-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for
multipart/form-data
POST data parsing (#41)
* Add support for multipart/form-data POST data parsing * client and server handling of multipart/form-data - client and server handling of multipart/form-data - update test to add petstore upload_file - add tests for forms * also test required form param condition Updated test code to test required form params. Test code re-generated with fixed codegen. Bumped version in prep for tagging --------- Co-authored-by: tan <[email protected]>
- Loading branch information
Showing
35 changed files
with
1,222 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# OpenAPI Generator Ignore | ||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator | ||
|
||
# Use this file to prevent files from being overwritten by the generator. | ||
# The patterns follow closely to .gitignore or .dockerignore. | ||
|
||
# As an example, the C# client generator defines ApiClient.cs. | ||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: | ||
#ApiClient.cs | ||
|
||
# You can match any string of characters against a directory, file or extension with a single asterisk (*): | ||
#foo/*/qux | ||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux | ||
|
||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**): | ||
#foo/**/qux | ||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux | ||
|
||
# You can also negate patterns with an exclamation (!). | ||
# For example, you can ignore all files in a docs folder with the file extension .md: | ||
#docs/*.md | ||
# Then explicitly reverse the ignore rule for a single file: | ||
#!docs/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
README.md | ||
docs/DefaultApi.md | ||
docs/TestResponse.md | ||
src/FormsClient.jl | ||
src/apis/api_DefaultApi.jl | ||
src/modelincludes.jl | ||
src/models/model_TestResponse.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7.0.0-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Julia API client for FormsClient | ||
|
||
Tests for different types of POST operations with forms and file uploads | ||
|
||
## Overview | ||
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. | ||
|
||
- API version: 0.1.0 | ||
- Build package: org.openapitools.codegen.languages.JuliaClientCodegen | ||
|
||
|
||
## Installation | ||
Place the Julia files generated under the `src` folder in your Julia project. Include FormsClient.jl in the project code. | ||
It would include the module named FormsClient. | ||
|
||
Documentation is generated as markdown files under the `docs` folder. You can include them in your project documentation. | ||
Documentation is also embedded in Julia which can be used with a Julia specific documentation generator. | ||
|
||
## API Endpoints | ||
|
||
Class | Method | ||
------------ | ------------- | ||
*DefaultApi* | [**post_urlencoded_form**](docs/DefaultApi.md#post_urlencoded_form)<br/>**POST** /test/{form_id}/post_urlencoded_form_data<br/>posts a urlencoded form, with file contents and additional metadata, both of which are strings | ||
*DefaultApi* | [**upload_binary_file**](docs/DefaultApi.md#upload_binary_file)<br/>**POST** /test/{file_id}/upload_binary_file<br/>uploads a binary file given its path, along with some metadata | ||
*DefaultApi* | [**upload_text_file**](docs/DefaultApi.md#upload_text_file)<br/>**POST** /test/{file_id}/upload_text_file<br/>uploads text file contents along with some metadata | ||
|
||
|
||
## Models | ||
|
||
- [TestResponse](docs/TestResponse.md) | ||
|
||
|
||
<a id="authorization"></a> | ||
## Authorization | ||
Endpoints do not require authorization. | ||
|
||
|
||
## Author | ||
|
||
|
||
|
Oops, something went wrong.
a12ba5a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
a12ba5a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/87958
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: