docs/guide/examples.md
This page is generated automatically from the swagger-php sources.
For improvements head over to GitHub and create a PR ;)
A simple API example uing enums, traits and callbacks.
<<< @/examples/specs/api/attributes/Server.php
</template> <template v-slot:an><<< @/examples/specs/api/annotations/Server.php
</template> </codeblock><<< @/examples/specs/api/attributes/Product.php
</template> <template v-slot:an><<< @/examples/specs/api/annotations/Product.php
</template> </codeblock><<< @/examples/specs/api/attributes/NameTrait.php
</template> <template v-slot:an><<< @/examples/specs/api/annotations/NameTrait.php
</template> </codeblock><<< @/examples/specs/api/attributes/Colour.php
</template> <template v-slot:an><<< @/examples/specs/api/annotations/Colour.php
</template> </codeblock><<< @/examples/specs/api/attributes/OpenApiSpec.php
</template> <template v-slot:an><<< @/examples/specs/api/annotations/OpenApiSpec.php
</template> </codeblock><<< @/examples/specs/api/attributes/ProductController.php
</template> <template v-slot:an><<< @/examples/specs/api/annotations/ProductController.php
</template> </codeblock>Classic petstore sample app. Uses OAuth
<<< @/examples/specs/petstore/attributes/Models/Category.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Models/Category.php
</template> </codeblock><<< @/examples/specs/petstore/attributes/Models/Order.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Models/Order.php
</template> </codeblock><<< @/examples/specs/petstore/attributes/Models/PetRequestBody.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Models/PetRequestBody.php
</template> </codeblock><<< @/examples/specs/petstore/attributes/Models/Tag.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Models/Tag.php
</template> </codeblock><<< @/examples/specs/petstore/attributes/Models/User.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Models/User.php
</template> </codeblock><<< @/examples/specs/petstore/attributes/Models/ApiResponse.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Models/ApiResponse.php
</template> </codeblock><<< @/examples/specs/petstore/attributes/Models/UserArrayRequestBody.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Models/UserArrayRequestBody.php
</template> </codeblock><<< @/examples/specs/petstore/attributes/Models/Pet.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Models/Pet.php
</template> </codeblock><<< @/examples/specs/petstore/attributes/Security.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Security.php
</template> </codeblock><<< @/examples/specs/petstore/attributes/Controllers/UserController.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Controllers/UserController.php
</template> </codeblock><<< @/examples/specs/petstore/attributes/Controllers/StoreController.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Controllers/StoreController.php
</template> </codeblock><<< @/examples/specs/petstore/attributes/Controllers/PetController.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Controllers/PetController.php
</template> </codeblock><<< @/examples/specs/petstore/attributes/Petstore.php
</template> <template v-slot:an><<< @/examples/specs/petstore/annotations/Petstore.php
</template> </codeblock>Demonstrates the use of Discriminator
<<< @/examples/specs/polymorphism/attributes/Controller.php
</template> <template v-slot:an><<< @/examples/specs/polymorphism/annotations/Controller.php
</template> </codeblock><<< @/examples/specs/polymorphism/attributes/Request.php
</template> <template v-slot:an><<< @/examples/specs/polymorphism/annotations/Request.php
</template> </codeblock><<< @/examples/specs/polymorphism/attributes/Employee.php
</template> <template v-slot:an><<< @/examples/specs/polymorphism/annotations/Employee.php
</template> </codeblock><<< @/examples/specs/polymorphism/attributes/AbstractResponsible.php
</template> <template v-slot:an><<< @/examples/specs/polymorphism/annotations/AbstractResponsible.php
</template> </codeblock><<< @/examples/specs/polymorphism/attributes/Fl.php
</template> <template v-slot:an><<< @/examples/specs/polymorphism/annotations/Fl.php
</template> </codeblock>