forked from loafle/openapi-generator-original
* remove @RequestMapping from the apiController.mustache file and add it to the api.mustache file * move the defaultBasePath.mustache file in src/main/resources/JavaSpring so that it commun with all Spring server-side libraries (spring-boot, spring-mvc). The value of default context path is the value of contextPath variable. * added a unit test to verify it * update the outputDir variable to samples/server/petstore/spring-stubs in the bin/configs/spring-stubs.yaml file because it generates Spring server-side classes. And not on the client-side as the output directory seemed to suggest. * Results of "generate-samples.sh bin/configs/spring*" command * Remove default value of url in @FeignClient * resolve conflicts with origin/master * merge remote/master into branch * fix samples after a merge with master * delete the directory samples/client/petstore/spring-stubs because it moved to samples/openapi3/... * add samples/client/petstore/spring-stubs just for the CI build (normally it is unnecessary)) * delete 3 kotlin class files commited by error in samples/server/petstore/kotlin-springboot and samples/server/petstore/kotlin-springboot-reactive * Update the unit test SpringCodegenTest.doAnnotateDatesOnModelParameters because one more annotation is generated (@RequestMapping) Co-authored-by: rpruvost <rpruvost@ITEM-S78402.emea.msad.sopra> Co-authored-by: rpruvost <rpruvost@ITEM-S78402> Co-authored-by: rpruvost <rpruvost>
Documentation for OpenAPI Petstore
This is a client generator for microcontrollers on the Espressif32 platform and the Arduino framework After the client have been generated, you have to change these following variables:
- root.cert | Provide your service root certificate.
- src/main.cpp | Change wifi name
- src/main.cpp | Change wifi password
- lib/service/AbstractService.h | Change to your url
Documentation for OpenAPI Petstore 1.0.0 Tiny client cpp (Arduino)
The project is structured like this:
samples/client/petstore/tiny/cpp/
├── lib
│ ├── Models
│ ├── service
│ └── TestFiles
├── platformio.ini
├── pre_compiling_bourne.py
├── README.md
├── root.cert
├── src
│ └── main.cpp
└── test
└── RunTests.cpp
All URIs are relative to http://petstore.swagger.iohttp://petstore.swagger.io/v2
PetApi
Method | HTTP request | Description |
---|---|---|
addPet | POST /pet | Add a new pet to the store. |
deletePet | DELETE /pet/{petId} | Deletes a pet. |
findPetsByStatus | GET /pet/findByStatus | Finds Pets by status. |
findPetsByTags | GET /pet/findByTags | Finds Pets by tags. |
getPetById | GET /pet/{petId} | Find pet by ID. |
updatePet | PUT /pet | Update an existing pet. |
updatePetWithForm | POST /pet/{petId} | Updates a pet in the store with form data. |
uploadFile | POST /pet/{petId}/uploadImage | uploads an image. |
StoreApi
Method | HTTP request | Description |
---|---|---|
deleteOrder | DELETE /store/order/{orderId} | Delete purchase order by ID. |
getInventory | GET /store/inventory | Returns pet inventories by status. |
getOrderById | GET /store/order/{orderId} | Find purchase order by ID. |
placeOrder | POST /store/order | Place an order for a pet. |
UserApi
Method | HTTP request | Description |
---|---|---|
createUser | POST /user | Create user. |
createUsersWithArrayInput | POST /user/createWithArray | Creates list of users with given input array. |
createUsersWithListInput | POST /user/createWithList | Creates list of users with given input array. |
deleteUser | DELETE /user/{username} | Delete user. |
getUserByName | GET /user/{username} | Get user by user name. |
loginUser | GET /user/login | Logs user into the system. |
logoutUser | GET /user/logout | Logs out current logged in user session. |
updateUser | PUT /user/{username} | Updated user. |
What are the Model files for the data structures/objects?
Class | Description |
---|---|
ApiResponse | Describes the result of uploading an image resource |
Category | A category for a pet |
Order | An order for a pets from the pet store |
Pet | A pet for sale in the pet store |
Tag | A tag for a pet |
User | A User who is purchasing from the pet store |