| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| package org.openapitools.codegen.options; | ||
|
|
||
| import org.openapitools.codegen.CodegenConstants; | ||
| import org.openapitools.codegen.languages.JetbrainsHttpClientClientCodegen; | ||
|
|
||
| import com.google.common.collect.ImmutableMap; | ||
|
|
||
| import java.util.Map; | ||
|
|
||
| public class JetbrainsHttpClientClientCodegenOptionsProvider implements OptionsProvider { | ||
| public static final String PROJECT_NAME_VALUE = "OpenAPI"; | ||
|
|
||
| @Override | ||
| public String getLanguage() { | ||
| return "jetbrains-http-client"; | ||
| } | ||
|
|
||
| @Override | ||
| public Map<String, String> createOptions() { | ||
| ImmutableMap.Builder<String, String> builder = new ImmutableMap.Builder<String, String>(); | ||
| return builder | ||
| .put(JetbrainsHttpClientClientCodegen.PROJECT_NAME, PROJECT_NAME_VALUE) | ||
| .build(); | ||
| } | ||
|
|
||
| @Override | ||
| public boolean isServer() { | ||
| return false; | ||
| } | ||
| } | ||
|
|
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Apis/PetApi.http | ||
| Apis/StoreApi.http | ||
| Apis/UserApi.http | ||
| README.md |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 6.3.0-SNAPSHOT |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| ## PetApi | ||
|
|
||
| ### Add a new pet to the store | ||
| # @name addPet | ||
| POST http://petstore.swagger.io/v2/pet | ||
| Content-Type: application/json | ||
| Content-Type: application/xml | ||
|
|
||
| ### Deletes a pet | ||
| # @name deletePet | ||
| DELETE http://petstore.swagger.io/v2/pet/{{petId}} | ||
|
|
||
| ### Finds Pets by status | ||
| # @name findPetsByStatus | ||
| GET http://petstore.swagger.io/v2/pet/findByStatus | ||
|
|
||
| ### Finds Pets by tags | ||
| # @name findPetsByTags | ||
| GET http://petstore.swagger.io/v2/pet/findByTags | ||
|
|
||
| ### Find pet by ID | ||
| # @name getPetById | ||
| GET http://petstore.swagger.io/v2/pet/{{petId}} | ||
|
|
||
| ### Update an existing pet | ||
| # @name updatePet | ||
| PUT http://petstore.swagger.io/v2/pet | ||
| Content-Type: application/json | ||
| Content-Type: application/xml | ||
|
|
||
| ### Updates a pet in the store with form data | ||
| # @name updatePetWithForm | ||
| POST http://petstore.swagger.io/v2/pet/{{petId}} | ||
| Content-Type: application/x-www-form-urlencoded | ||
|
|
||
| ### uploads an image | ||
| # @name uploadFile | ||
| POST http://petstore.swagger.io/v2/pet/{{petId}}/uploadImage | ||
| Content-Type: multipart/form-data |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| ## StoreApi | ||
|
|
||
| ### Delete purchase order by ID | ||
| # @name deleteOrder | ||
| DELETE http://petstore.swagger.io/v2/store/order/{{orderId}} | ||
|
|
||
| ### Returns pet inventories by status | ||
| # @name getInventory | ||
| GET http://petstore.swagger.io/v2/store/inventory | ||
|
|
||
| ### Find purchase order by ID | ||
| # @name getOrderById | ||
| GET http://petstore.swagger.io/v2/store/order/{{orderId}} | ||
|
|
||
| ### Place an order for a pet | ||
| # @name placeOrder | ||
| POST http://petstore.swagger.io/v2/store/order | ||
| Content-Type: application/json |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| ## UserApi | ||
|
|
||
| ### Create user | ||
| # @name createUser | ||
| POST http://petstore.swagger.io/v2/user | ||
| Content-Type: application/json | ||
|
|
||
| ### Creates list of users with given input array | ||
| # @name createUsersWithArrayInput | ||
| POST http://petstore.swagger.io/v2/user/createWithArray | ||
| Content-Type: application/json | ||
|
|
||
| ### Creates list of users with given input array | ||
| # @name createUsersWithListInput | ||
| POST http://petstore.swagger.io/v2/user/createWithList | ||
| Content-Type: application/json | ||
|
|
||
| ### Delete user | ||
| # @name deleteUser | ||
| DELETE http://petstore.swagger.io/v2/user/{{username}} | ||
|
|
||
| ### Get user by user name | ||
| # @name getUserByName | ||
| GET http://petstore.swagger.io/v2/user/{{username}} | ||
|
|
||
| ### Logs user into the system | ||
| # @name loginUser | ||
| GET http://petstore.swagger.io/v2/user/login | ||
|
|
||
| ### Logs out current logged in user session | ||
| # @name logoutUser | ||
| GET http://petstore.swagger.io/v2/user/logout | ||
|
|
||
| ### Updated user | ||
| # @name updateUser | ||
| PUT http://petstore.swagger.io/v2/user/{{username}} | ||
| Content-Type: application/json |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # OpenAPI Petstore - Jetbrains API Client | ||
|
|
||
| ## OpenAPI File description | ||
|
|
||
| This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. | ||
|
|
||
| * API basepath : [http://petstore.swagger.io/v2](http://petstore.swagger.io/v2) | ||
| * Version : 1.0.0 | ||
|
|
||
| ## Documentation for API Endpoints | ||
|
|
||
| All URIs are relative to *http://petstore.swagger.io/v2*, but will link to the `.http` file that contains the endpoint definition | ||
|
|
||
| Class | Method | HTTP request | Description | ||
| ------------ | ------------- | ------------- | ------------- | ||
| *PetApi* | [**addPet**](Apis/PetApi.http#addpet) | **POST** /pet | Add a new pet to the store | ||
| *PetApi* | [**deletePet**](Apis/PetApi.http#deletepet) | **DELETE** /pet/{petId} | Deletes a pet | ||
| *PetApi* | [**findPetsByStatus**](Apis/PetApi.http#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status | ||
| *PetApi* | [**findPetsByTags**](Apis/PetApi.http#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags | ||
| *PetApi* | [**getPetById**](Apis/PetApi.http#getpetbyid) | **GET** /pet/{petId} | Find pet by ID | ||
| *PetApi* | [**updatePet**](Apis/PetApi.http#updatepet) | **PUT** /pet | Update an existing pet | ||
| *PetApi* | [**updatePetWithForm**](Apis/PetApi.http#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data | ||
| *PetApi* | [**uploadFile**](Apis/PetApi.http#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image | ||
| *StoreApi* | [**deleteOrder**](Apis/StoreApi.http#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID | ||
| *StoreApi* | [**getInventory**](Apis/StoreApi.http#getinventory) | **GET** /store/inventory | Returns pet inventories by status | ||
| *StoreApi* | [**getOrderById**](Apis/StoreApi.http#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID | ||
| *StoreApi* | [**placeOrder**](Apis/StoreApi.http#placeorder) | **POST** /store/order | Place an order for a pet | ||
| *UserApi* | [**createUser**](Apis/UserApi.http#createuser) | **POST** /user | Create user | ||
| *UserApi* | [**createUsersWithArrayInput**](Apis/UserApi.http#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array | ||
| *UserApi* | [**createUsersWithListInput**](Apis/UserApi.http#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array | ||
| *UserApi* | [**deleteUser**](Apis/UserApi.http#deleteuser) | **DELETE** /user/{username} | Delete user | ||
| *UserApi* | [**getUserByName**](Apis/UserApi.http#getuserbyname) | **GET** /user/{username} | Get user by user name | ||
| *UserApi* | [**loginUser**](Apis/UserApi.http#loginuser) | **GET** /user/login | Logs user into the system | ||
| *UserApi* | [**logoutUser**](Apis/UserApi.http#logoutuser) | **GET** /user/logout | Logs out current logged in user session | ||
| *UserApi* | [**updateUser**](Apis/UserApi.http#updateuser) | **PUT** /user/{username} | Updated user | ||
|
|
||
|
|
||
|
|
||
| _This client was generated by the jetbrains-http-client of OpenAPI Generator_ |