openapitools / openapi-petstore Goto Github PK
View Code? Open in Web Editor NEWThe pet store sample
License: Apache License 2.0
The pet store sample
License: Apache License 2.0
i did a gradle init to generate a gradle.build from the pom.xml, but I'm having issues configuring the org.openapitools:openapi-generator-gradle-plugin.
getting errors with the build.
The below XML is the response obtained when requesting a pet via its ID.
After examining it, I do not think that this is valid XML.
<Pet><id>123</id><category><id/><name/></category><name>name</name><photoUrl><photoUrl></photoUrl></photoUrl><tag><tag><id/><name/></tag></tag><status/></Pet>
When just requesting for the inventory, the second request works perfectly fine. However, when you add a pet before, it fails with a 500 server error.
curl \
--request POST \
--url 'http://localhost:8080/v3/pet' \
--header 'Content-Type: application/json' \
--data '{"id":123,"category":{},"name":"name","photoUrls":[""],"tags":[{"id":123,"name":"tag"}],"status":{}}' \
--location \
--max-redirs 32
curl \
--request GET \
--url 'http://localhost:8080/v3/store/inventory' \
--header 'Content-Type: application/json' \
--header 'api_key: special-key' \
--location \
--max-redirs 32
Response:
{"timestamp":"2023-04-18T11:45:27.999Z","status":500,"error":"Internal Server Error","message":"No message available","path":"/v3/store/inventory"}%
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.