* [Bugfix] Removed a debug print statement that sometimes caused crashes. Change-Id: I62cf8d70faddfe855c7150927441465466dbaa53 Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com> * [Workaround/Fallback] Fix conversion of string representation of Json to JsonNode Changed the conversion to consider any non-parseable string as a single "json string" object. This is just a fallback to handle non-ideal server responses. Change-Id: I5339d385e57b6225706fbaaaba1c04003c3810e9 Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com> * [Bugfix] Correct Handling of Non-String Value Types in Json Maps Inside the Json Maps in server response, the earlier code was bugged if the "value" in the map was of a non-string type. Change-Id: I8c34c7e9470fc0743b509917f8098b2ebe2bd4e5 Signed-off-by: Akhil <akhil.kedia@samsung.com> * [BugFix/WorkAround] No "isPrimitiveType" in BodyParams The "isPrimitiveType" value tells us whether the data type of a particular parameter is one if the primitive types. This value is not present when iterating over all the body parameters, but is somehow present when iterating over all parameters and filtering for only BodyParams. Change-Id: I5b0a97e615b7300c33dc7f3d4673ad5e87c36f7e Signed-off-by: Akhil <akhil.kedia@samsung.com> * [Bugfix] Making Functions Static to Avoid Name Clashes Multiple functions in different classes might named the same, hence leading to multiple functions of the same name. Using static to have only internal linkage for these helper functions. Change-Id: I97fb1dd64b176c4a2b95e6d923723469852bc85a Signed-off-by: Akhil <akhil.kedia@samsung.com> * [Enhancement] Minor Improvements to Documentation Added Modules in Doxygen Doc, Improved MD documentation Signed-off-by: Akhil Kedia <akhil.kedia@samsung.com> * Regenrated petstore sample Update the petstore sample with newest template files Deleted older sample in samples/client/petstore/tizen/client/ The old samples use oblsolete APIs (These are APIs for Tizen 2.0, removed in 2.4, current release is 3.0) Signed-off-by: Akhil Kedia <akhil.kedia@samsung.com> * [Bugfix] Fixes incorrect headers sent (#5980) Regenerated the petstore as well. Signed-off-by: Akhil Kedia <akhil.kedia@samsung.com>
Documentation for Swagger Petstore 1.0.0 Tizen Client SDK
How do I get the doc files?
First generate source code by running swagger-codegen
Then run doc/generateDocumentation.sh
from the output folder. It will generate all the doc files and put them in the doc/SDK
directory.
To successfully generate documentation it needs Doxygen
installed in the path.
Note - Before generating the documentation, put the logo of the project as the file doc/logo.png
before running doxygen
.
How do I use this?
This is the structure of the doc folder:
.
├── logo.png \\Logo of the project
├── Doxyfile \\Doxygen config files
├── generateDocumentation.sh \\Script to run to generate documentation
├── README.md \\This file
├── SDK \\Documentation for all classes in Swagger Petstore Tizen Client SDK. See ./html/index.html
│ └── html
tl;dr run this:
doc/generateDocumentation.sh
The above SDK folder will be generated. See the index.html inside the SDK folder.
What's Doxygen?
Doxygen is the de facto standard tool for generating/extracting documentation from annotated/unannotated C++ sources, but it also supports other popular programming languages such as C, Objective-C, C#, PHP, Java, Python, IDL (Corba, Microsoft, and UNO/OpenOffice flavors), Fortran, VHDL, Tcl, and to some extent D.
Check out Doxygen for additional information about the Doxygen project.
I Don't want to run Doxygen. What are the API files for accessing the REST endpoints?
All URIs are relative to http://petstore.swagger.iohttp://petstore.swagger.io/v2
PetManager
Method | HTTP request | Description |
---|---|---|
addPetSync | POST /pet | Add a new pet to the store. |
addPetASync | POST /pet | Add a new pet to the store. |
deletePetSync | DELETE /pet/{petId} | Deletes a pet. |
deletePetASync | DELETE /pet/{petId} | Deletes a pet. |
findPetsByStatusSync | GET /pet/findByStatus | Finds Pets by status. |
findPetsByStatusASync | GET /pet/findByStatus | Finds Pets by status. |
findPetsByTagsSync | GET /pet/findByTags | Finds Pets by tags. |
findPetsByTagsASync | GET /pet/findByTags | Finds Pets by tags. |
getPetByIdSync | GET /pet/{petId} | Find pet by ID. |
getPetByIdASync | GET /pet/{petId} | Find pet by ID. |
updatePetSync | PUT /pet | Update an existing pet. |
updatePetASync | PUT /pet | Update an existing pet. |
updatePetWithFormSync | POST /pet/{petId} | Updates a pet in the store with form data. |
updatePetWithFormASync | POST /pet/{petId} | Updates a pet in the store with form data. |
uploadFileSync | POST /pet/{petId}/uploadImage | uploads an image. |
uploadFileASync | POST /pet/{petId}/uploadImage | uploads an image. |
StoreManager
Method | HTTP request | Description |
---|---|---|
deleteOrderSync | DELETE /store/order/{orderId} | Delete purchase order by ID. |
deleteOrderASync | DELETE /store/order/{orderId} | Delete purchase order by ID. |
getInventorySync | GET /store/inventory | Returns pet inventories by status. |
getInventoryASync | GET /store/inventory | Returns pet inventories by status. |
getOrderByIdSync | GET /store/order/{orderId} | Find purchase order by ID. |
getOrderByIdASync | GET /store/order/{orderId} | Find purchase order by ID. |
placeOrderSync | POST /store/order | Place an order for a pet. |
placeOrderASync | POST /store/order | Place an order for a pet. |
UserManager
Method | HTTP request | Description |
---|---|---|
createUserSync | POST /user | Create user. |
createUserASync | POST /user | Create user. |
createUsersWithArrayInputSync | POST /user/createWithArray | Creates list of users with given input array. |
createUsersWithArrayInputASync | POST /user/createWithArray | Creates list of users with given input array. |
createUsersWithListInputSync | POST /user/createWithList | Creates list of users with given input array. |
createUsersWithListInputASync | POST /user/createWithList | Creates list of users with given input array. |
deleteUserSync | DELETE /user/{username} | Delete user. |
deleteUserASync | DELETE /user/{username} | Delete user. |
getUserByNameSync | GET /user/{username} | Get user by user name. |
getUserByNameASync | GET /user/{username} | Get user by user name. |
loginUserSync | GET /user/login | Logs user into the system. |
loginUserASync | GET /user/login | Logs user into the system. |
logoutUserSync | GET /user/logout | Logs out current logged in user session. |
logoutUserASync | GET /user/logout | Logs out current logged in user session. |
updateUserSync | PUT /user/{username} | Updated user. |
updateUserASync | 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 |