Skip to content

Commit e9b3e76

Browse files
committed
add new files
1 parent c29e13f commit e9b3e76

18 files changed

Lines changed: 1428 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
README.md
2+
build.sbt
3+
project/build.properties
4+
src/main/scala/org/openapitools/client/api/PetApi.scala
5+
src/main/scala/org/openapitools/client/api/StoreApi.scala
6+
src/main/scala/org/openapitools/client/api/UserApi.scala
7+
src/main/scala/org/openapitools/client/core/AdditionalTypeSerializers.scala
8+
src/main/scala/org/openapitools/client/core/Helpers.scala
9+
src/main/scala/org/openapitools/client/core/JsonSupport.scala
10+
src/main/scala/org/openapitools/client/model/ApiResponse.scala
11+
src/main/scala/org/openapitools/client/model/Category.scala
12+
src/main/scala/org/openapitools/client/model/Order.scala
13+
src/main/scala/org/openapitools/client/model/Pet.scala
14+
src/main/scala/org/openapitools/client/model/Tag.scala
15+
src/main/scala/org/openapitools/client/model/User.scala
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.16.0-SNAPSHOT
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# openapi-client
2+
3+
OpenAPI Petstore
4+
- API version: 1.0.0
5+
- Generator version: 7.16.0-SNAPSHOT
6+
7+
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
8+
9+
10+
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*
11+
12+
## Requirements
13+
14+
Building the API client library requires:
15+
1. Java 1.7+
16+
2. Maven/Gradle/SBT
17+
18+
## Installation
19+
20+
To install the API client library to your local Maven repository, simply execute:
21+
22+
```shell
23+
mvn clean install
24+
```
25+
26+
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
27+
28+
```shell
29+
mvn clean deploy
30+
```
31+
32+
Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.
33+
34+
### Maven users
35+
36+
Add this dependency to your project's POM:
37+
38+
```xml
39+
<dependency>
40+
<groupId>org.openapitools</groupId>
41+
<artifactId>openapi-client</artifactId>
42+
<version>1.0.0</version>
43+
<scope>compile</scope>
44+
</dependency>
45+
```
46+
47+
### Gradle users
48+
49+
Add this dependency to your project's build file:
50+
51+
```groovy
52+
compile "org.openapitools:openapi-client:1.0.0"
53+
```
54+
55+
### SBT users
56+
57+
```scala
58+
libraryDependencies += "org.openapitools" % "openapi-client" % "1.0.0"
59+
```
60+
61+
## Getting Started
62+
63+
## Documentation for API Endpoints
64+
65+
All URIs are relative to *http://petstore.swagger.io/v2*
66+
67+
Class | Method | HTTP request | Description
68+
------------ | ------------- | ------------- | -------------
69+
*PetApi* | **addPet** | **POST** /pet | Add a new pet to the store
70+
*PetApi* | **deletePet** | **DELETE** /pet/${petIdPathParam} | Deletes a pet
71+
*PetApi* | **findPetsByStatus** | **GET** /pet/findByStatus | Finds Pets by status
72+
*PetApi* | **findPetsByTags** | **GET** /pet/findByTags | Finds Pets by tags
73+
*PetApi* | **getPetById** | **GET** /pet/${petIdPathParam} | Find pet by ID
74+
*PetApi* | **updatePet** | **PUT** /pet | Update an existing pet
75+
*PetApi* | **updatePetWithForm** | **POST** /pet/${petIdPathParam} | Updates a pet in the store with form data
76+
*PetApi* | **uploadFile** | **POST** /pet/${petIdPathParam}/uploadImage | uploads an image
77+
*StoreApi* | **deleteOrder** | **DELETE** /store/order/${orderIdPathParam} | Delete purchase order by ID
78+
*StoreApi* | **getInventory** | **GET** /store/inventory | Returns pet inventories by status
79+
*StoreApi* | **getOrderById** | **GET** /store/order/${orderIdPathParam} | Find purchase order by ID
80+
*StoreApi* | **placeOrder** | **POST** /store/order | Place an order for a pet
81+
*UserApi* | **createUser** | **POST** /user | Create user
82+
*UserApi* | **createUsersWithArrayInput** | **POST** /user/createWithArray | Creates list of users with given input array
83+
*UserApi* | **createUsersWithListInput** | **POST** /user/createWithList | Creates list of users with given input array
84+
*UserApi* | **deleteUser** | **DELETE** /user/${usernamePathParam} | Delete user
85+
*UserApi* | **getUserByName** | **GET** /user/${usernamePathParam} | Get user by user name
86+
*UserApi* | **loginUser** | **GET** /user/login | Logs user into the system
87+
*UserApi* | **logoutUser** | **GET** /user/logout | Logs out current logged in user session
88+
*UserApi* | **updateUser** | **PUT** /user/${usernamePathParam} | Updated user
89+
90+
91+
## Documentation for Models
92+
93+
- [ApiResponse](ApiResponse.md)
94+
- [Category](Category.md)
95+
- [Order](Order.md)
96+
- [Pet](Pet.md)
97+
- [Tag](Tag.md)
98+
- [User](User.md)
99+
100+
101+
<a id="documentation-for-authorization"></a>
102+
## Documentation for Authorization
103+
104+
105+
Authentication schemes defined for the API:
106+
<a id="api_key"></a>
107+
### api_key
108+
109+
- **Type**: API key
110+
- **API key parameter name**: api_key
111+
- **Location**: HTTP header
112+
113+
114+
## Author
115+
116+
117+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version := "1.0.0"
2+
name := "openapi-client"
3+
organization := "org.openapitools"
4+
5+
scalaVersion := "3.3.4"
6+
7+
libraryDependencies ++= Seq(
8+
"com.softwaremill.sttp.client4" %% "core" % "4.0.0-RC1",
9+
"com.softwaremill.sttp.client4" %% "jsoniter" % "4.0.0-RC1",
10+
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-core" % "2.31.1",
11+
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-macros" % "2.31.1" % "compile-internal",
12+
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-circe" % "2.31.1"
13+
)
14+
15+
scalacOptions := Seq(
16+
"-unchecked",
17+
"-deprecation",
18+
"-feature"
19+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=1.9.9

0 commit comments

Comments
 (0)