mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
minor wording change (#2299)
This commit is contained in:
parent
bcb4b03798
commit
37c890f755
@ -4,6 +4,6 @@
|
||||
-- {{#version}}OpenAPI spec version: {{{version}}}{{/version}}
|
||||
-- {{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}}
|
||||
--
|
||||
-- NOTE: This package is auto generated by the swagger code generator {{{generatorVersion}}}.
|
||||
-- NOTE: This package is auto generated by OpenAPI-Generator {{{generatorVersion}}}.
|
||||
-- https://openapi-generator.tech
|
||||
-- Do not edit the class manually.
|
||||
-- Do not edit the class manually.
|
||||
|
@ -5,11 +5,11 @@
|
||||
* {{#version}}OpenAPI spec version: {{{version}}}{{/version}}
|
||||
* {{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}}
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
* Source files are located at:
|
||||
*
|
||||
* > swagger-codegen/modules/swagger-codegen/src/main/resources/php-laravel/
|
||||
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
|
||||
*/
|
||||
|
@ -30,7 +30,7 @@ impl Default for Configuration {
|
||||
fn default() -> Self {
|
||||
Configuration {
|
||||
base_path: "{{{basePath}}}".to_owned(),
|
||||
user_agent: {{#httpUserAgent}}Some("{{{.}}}".to_owned()){{/httpUserAgent}}{{^httpUserAgent}}Some("Swagger-Codegen/{{{version}}}/rust".to_owned()){{/httpUserAgent}},
|
||||
user_agent: {{#httpUserAgent}}Some("{{{.}}}".to_owned()){{/httpUserAgent}}{{^httpUserAgent}}Some("OpenAPI-Generator/{{{version}}}/rust".to_owned()){{/httpUserAgent}},
|
||||
client: reqwest::Client::new(),
|
||||
basic_auth: None,
|
||||
oauth_access_token: None,
|
||||
|
@ -20,7 +20,7 @@ It can be used in both TypeScript and JavaScript. In TypeScript, the definition
|
||||
|
||||
### Installation ###
|
||||
|
||||
`swagger-codegen` does not generate JavaScript directly. The generated Node module comes with `package.json` that bundles `typescript` and `typings` so it can self-compile during `prepublish` stage. The should be run automatically during `npm install` or `npm publish`.
|
||||
`openapi-generator` does not generate JavaScript directly. The generated Node module comes with `package.json` that bundles `typescript` and `typings` so it can self-compile during `prepublish` stage. The should be run automatically during `npm install` or `npm publish`.
|
||||
|
||||
CAVEAT: Due to [privilege implications](https://docs.npmjs.com/misc/scripts#user), `npm` would skip all scripts if the user is `root`. You would need to manually run it with `npm run prepublish` or run `npm install --unsafe-perm`.
|
||||
|
||||
|
@ -1 +1 @@
|
||||
2.4.0-SNAPSHOT
|
||||
4.0.0-SNAPSHOT
|
@ -1,24 +1,24 @@
|
||||
-- Swagger Petstore
|
||||
-- This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special_key` to test the authorization filters.
|
||||
-- OpenAPI Petstore
|
||||
-- This is a sample server Petstore server. For this sample, you can use the api key `special_key` to test the authorization filters.
|
||||
--
|
||||
-- OpenAPI spec version: 1.0.0
|
||||
-- Contact: apiteam@swagger.io
|
||||
--
|
||||
--
|
||||
-- NOTE: This package is auto generated by the swagger code generator 2.4.0-SNAPSHOT.
|
||||
-- https://github.com/swagger-api/swagger-codegen.git
|
||||
-- NOTE: This package is auto generated by OpenAPI-Generator 4.0.0-SNAPSHOT.
|
||||
-- https://openapi-generator.tech
|
||||
-- Do not edit the class manually.
|
||||
|
||||
with Swagger.Streams;
|
||||
package body Samples.Petstore.Clients is
|
||||
|
||||
-- Add a new pet to the store
|
||||
procedure Add_Pet
|
||||
(Client : in out Client_Type;
|
||||
P_Body : in Samples.Petstore.Models.Pet_Type) is
|
||||
P_Body : in Samples.Petstore.Models.PetType) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Req : Swagger.Clients.Request_Type;
|
||||
begin
|
||||
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML,
|
||||
Swagger.Clients.APPLICATION_JSON));
|
||||
|
||||
Client.Initialize (Req, (Swagger.Clients.APPLICATION_JSON,
|
||||
Swagger.Clients.APPLICATION_XML));
|
||||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body);
|
||||
@ -34,8 +34,7 @@ package body Samples.Petstore.Clients is
|
||||
Api_Key : in Swagger.Nullable_UString) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
begin
|
||||
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML,
|
||||
Swagger.Clients.APPLICATION_JSON));
|
||||
|
||||
|
||||
URI.Set_Path ("/pet/{petId}");
|
||||
URI.Set_Path_Param ("petId", Swagger.To_String (Pet_Id));
|
||||
@ -46,8 +45,8 @@ package body Samples.Petstore.Clients is
|
||||
-- Multiple status values can be provided with comma separated strings
|
||||
procedure Find_Pets_By_Status
|
||||
(Client : in out Client_Type;
|
||||
Status : in Swagger.Nullable_UString_Vectors.Vector;
|
||||
Result : out Samples.Petstore.Models.Pet_Type_Vectors.Vector) is
|
||||
Status : in Swagger.UString_Vectors.Vector;
|
||||
Result : out Samples.Petstore.Models.PetType_Vectors.Vector) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Reply : Swagger.Value_Type;
|
||||
begin
|
||||
@ -64,8 +63,8 @@ package body Samples.Petstore.Clients is
|
||||
-- Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
procedure Find_Pets_By_Tags
|
||||
(Client : in out Client_Type;
|
||||
Tags : in Swagger.Nullable_UString_Vectors.Vector;
|
||||
Result : out Samples.Petstore.Models.Pet_Type_Vectors.Vector) is
|
||||
Tags : in Swagger.UString_Vectors.Vector;
|
||||
Result : out Samples.Petstore.Models.PetType_Vectors.Vector) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Reply : Swagger.Value_Type;
|
||||
begin
|
||||
@ -83,7 +82,7 @@ package body Samples.Petstore.Clients is
|
||||
procedure Get_Pet_By_Id
|
||||
(Client : in out Client_Type;
|
||||
Pet_Id : in Swagger.Long;
|
||||
Result : out Samples.Petstore.Models.Pet_Type) is
|
||||
Result : out Samples.Petstore.Models.PetType) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Reply : Swagger.Value_Type;
|
||||
begin
|
||||
@ -99,12 +98,11 @@ package body Samples.Petstore.Clients is
|
||||
-- Update an existing pet
|
||||
procedure Update_Pet
|
||||
(Client : in out Client_Type;
|
||||
P_Body : in Samples.Petstore.Models.Pet_Type) is
|
||||
P_Body : in Samples.Petstore.Models.PetType) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Req : Swagger.Clients.Request_Type;
|
||||
begin
|
||||
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML,
|
||||
Swagger.Clients.APPLICATION_JSON));
|
||||
|
||||
Client.Initialize (Req, (Swagger.Clients.APPLICATION_JSON,
|
||||
Swagger.Clients.APPLICATION_XML));
|
||||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body);
|
||||
@ -122,8 +120,7 @@ package body Samples.Petstore.Clients is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Req : Swagger.Clients.Request_Type;
|
||||
begin
|
||||
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML,
|
||||
Swagger.Clients.APPLICATION_JSON));
|
||||
|
||||
Client.Initialize (Req, (1 => Swagger.Clients.APPLICATION_FORM));
|
||||
Req.Stream.Write_Entity ("name", Name);
|
||||
Req.Stream.Write_Entity ("status", Status);
|
||||
@ -139,7 +136,7 @@ package body Samples.Petstore.Clients is
|
||||
Pet_Id : in Swagger.Long;
|
||||
Additional_Metadata : in Swagger.Nullable_UString;
|
||||
File : in Swagger.File_Part_Type;
|
||||
Result : out Samples.Petstore.Models.ApiResponse_Type) is
|
||||
Result : out Samples.Petstore.Models.ApiResponseType) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Req : Swagger.Clients.Request_Type;
|
||||
Reply : Swagger.Value_Type;
|
||||
@ -162,8 +159,7 @@ package body Samples.Petstore.Clients is
|
||||
Order_Id : in Swagger.UString) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
begin
|
||||
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML,
|
||||
Swagger.Clients.APPLICATION_JSON));
|
||||
|
||||
|
||||
URI.Set_Path ("/store/order/{orderId}");
|
||||
URI.Set_Path_Param ("orderId", Order_Id);
|
||||
@ -174,7 +170,7 @@ package body Samples.Petstore.Clients is
|
||||
-- Returns a map of status codes to quantities
|
||||
procedure Get_Inventory
|
||||
(Client : in out Client_Type;
|
||||
Result : out Swagger.Nullable_Integer_Map) is
|
||||
Result : out Swagger.Integer_Map) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Reply : Swagger.Value_Type;
|
||||
begin
|
||||
@ -190,7 +186,7 @@ package body Samples.Petstore.Clients is
|
||||
procedure Get_Order_By_Id
|
||||
(Client : in out Client_Type;
|
||||
Order_Id : in Swagger.Long;
|
||||
Result : out Samples.Petstore.Models.Order_Type) is
|
||||
Result : out Samples.Petstore.Models.OrderType) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Reply : Swagger.Value_Type;
|
||||
begin
|
||||
@ -206,8 +202,8 @@ package body Samples.Petstore.Clients is
|
||||
-- Place an order for a pet
|
||||
procedure Place_Order
|
||||
(Client : in out Client_Type;
|
||||
P_Body : in Samples.Petstore.Models.Order_Type;
|
||||
Result : out Samples.Petstore.Models.Order_Type) is
|
||||
P_Body : in Samples.Petstore.Models.OrderType;
|
||||
Result : out Samples.Petstore.Models.OrderType) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Req : Swagger.Clients.Request_Type;
|
||||
Reply : Swagger.Value_Type;
|
||||
@ -226,12 +222,11 @@ package body Samples.Petstore.Clients is
|
||||
-- This can only be done by the logged in user.
|
||||
procedure Create_User
|
||||
(Client : in out Client_Type;
|
||||
P_Body : in Samples.Petstore.Models.User_Type) is
|
||||
P_Body : in Samples.Petstore.Models.UserType) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Req : Swagger.Clients.Request_Type;
|
||||
begin
|
||||
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML,
|
||||
Swagger.Clients.APPLICATION_JSON));
|
||||
|
||||
Client.Initialize (Req, (1 => Swagger.Clients.APPLICATION_JSON));
|
||||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body);
|
||||
|
||||
@ -242,12 +237,11 @@ package body Samples.Petstore.Clients is
|
||||
-- Creates list of users with given input array
|
||||
procedure Create_Users_With_Array_Input
|
||||
(Client : in out Client_Type;
|
||||
P_Body : in Samples.Petstore.Models.User_Type_Vectors.Vector) is
|
||||
P_Body : in Samples.Petstore.Models.UserType_Vectors.Vector) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Req : Swagger.Clients.Request_Type;
|
||||
begin
|
||||
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML,
|
||||
Swagger.Clients.APPLICATION_JSON));
|
||||
|
||||
Client.Initialize (Req, (1 => Swagger.Clients.APPLICATION_JSON));
|
||||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body);
|
||||
|
||||
@ -258,12 +252,11 @@ package body Samples.Petstore.Clients is
|
||||
-- Creates list of users with given input array
|
||||
procedure Create_Users_With_List_Input
|
||||
(Client : in out Client_Type;
|
||||
P_Body : in Samples.Petstore.Models.User_Type_Vectors.Vector) is
|
||||
P_Body : in Samples.Petstore.Models.UserType_Vectors.Vector) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Req : Swagger.Clients.Request_Type;
|
||||
begin
|
||||
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML,
|
||||
Swagger.Clients.APPLICATION_JSON));
|
||||
|
||||
Client.Initialize (Req, (1 => Swagger.Clients.APPLICATION_JSON));
|
||||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body);
|
||||
|
||||
@ -278,8 +271,7 @@ package body Samples.Petstore.Clients is
|
||||
Username : in Swagger.UString) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
begin
|
||||
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML,
|
||||
Swagger.Clients.APPLICATION_JSON));
|
||||
|
||||
|
||||
URI.Set_Path ("/user/{username}");
|
||||
URI.Set_Path_Param ("username", Username);
|
||||
@ -290,7 +282,7 @@ package body Samples.Petstore.Clients is
|
||||
procedure Get_User_By_Name
|
||||
(Client : in out Client_Type;
|
||||
Username : in Swagger.UString;
|
||||
Result : out Samples.Petstore.Models.User_Type) is
|
||||
Result : out Samples.Petstore.Models.UserType) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Reply : Swagger.Value_Type;
|
||||
begin
|
||||
@ -327,8 +319,7 @@ package body Samples.Petstore.Clients is
|
||||
(Client : in out Client_Type) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
begin
|
||||
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML,
|
||||
Swagger.Clients.APPLICATION_JSON));
|
||||
|
||||
|
||||
URI.Set_Path ("/user/logout");
|
||||
Client.Call (Swagger.Clients.GET, URI);
|
||||
@ -339,12 +330,11 @@ package body Samples.Petstore.Clients is
|
||||
procedure Update_User
|
||||
(Client : in out Client_Type;
|
||||
Username : in Swagger.UString;
|
||||
P_Body : in Samples.Petstore.Models.User_Type) is
|
||||
P_Body : in Samples.Petstore.Models.UserType) is
|
||||
URI : Swagger.Clients.URI_Type;
|
||||
Req : Swagger.Clients.Request_Type;
|
||||
begin
|
||||
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML,
|
||||
Swagger.Clients.APPLICATION_JSON));
|
||||
|
||||
Client.Initialize (Req, (1 => Swagger.Clients.APPLICATION_JSON));
|
||||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body);
|
||||
|
||||
|
@ -1,12 +1,13 @@
|
||||
-- Swagger Petstore
|
||||
-- This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special_key` to test the authorization filters.
|
||||
-- OpenAPI Petstore
|
||||
-- This is a sample server Petstore server. For this sample, you can use the api key `special_key` to test the authorization filters.
|
||||
--
|
||||
-- OpenAPI spec version: 1.0.0
|
||||
-- Contact: apiteam@swagger.io
|
||||
--
|
||||
--
|
||||
-- NOTE: This package is auto generated by the swagger code generator 2.4.0-SNAPSHOT.
|
||||
-- https://github.com/swagger-api/swagger-codegen.git
|
||||
-- NOTE: This package is auto generated by OpenAPI-Generator 4.0.0-SNAPSHOT.
|
||||
-- https://openapi-generator.tech
|
||||
-- Do not edit the class manually.
|
||||
|
||||
with Samples.Petstore.Models;
|
||||
with Swagger.Clients;
|
||||
package Samples.Petstore.Clients is
|
||||
@ -16,7 +17,7 @@ package Samples.Petstore.Clients is
|
||||
-- Add a new pet to the store
|
||||
procedure Add_Pet
|
||||
(Client : in out Client_Type;
|
||||
P_Body : in Samples.Petstore.Models.Pet_Type);
|
||||
P_Body : in Samples.Petstore.Models.PetType);
|
||||
|
||||
-- Deletes a pet
|
||||
procedure Delete_Pet
|
||||
@ -28,27 +29,27 @@ package Samples.Petstore.Clients is
|
||||
-- Multiple status values can be provided with comma separated strings
|
||||
procedure Find_Pets_By_Status
|
||||
(Client : in out Client_Type;
|
||||
Status : in Swagger.Nullable_UString_Vectors.Vector;
|
||||
Result : out Samples.Petstore.Models.Pet_Type_Vectors.Vector);
|
||||
Status : in Swagger.UString_Vectors.Vector;
|
||||
Result : out Samples.Petstore.Models.PetType_Vectors.Vector);
|
||||
|
||||
-- Finds Pets by tags
|
||||
-- Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
procedure Find_Pets_By_Tags
|
||||
(Client : in out Client_Type;
|
||||
Tags : in Swagger.Nullable_UString_Vectors.Vector;
|
||||
Result : out Samples.Petstore.Models.Pet_Type_Vectors.Vector);
|
||||
Tags : in Swagger.UString_Vectors.Vector;
|
||||
Result : out Samples.Petstore.Models.PetType_Vectors.Vector);
|
||||
|
||||
-- Find pet by ID
|
||||
-- Returns a single pet
|
||||
procedure Get_Pet_By_Id
|
||||
(Client : in out Client_Type;
|
||||
Pet_Id : in Swagger.Long;
|
||||
Result : out Samples.Petstore.Models.Pet_Type);
|
||||
Result : out Samples.Petstore.Models.PetType);
|
||||
|
||||
-- Update an existing pet
|
||||
procedure Update_Pet
|
||||
(Client : in out Client_Type;
|
||||
P_Body : in Samples.Petstore.Models.Pet_Type);
|
||||
P_Body : in Samples.Petstore.Models.PetType);
|
||||
|
||||
-- Updates a pet in the store with form data
|
||||
procedure Update_Pet_With_Form
|
||||
@ -63,7 +64,7 @@ package Samples.Petstore.Clients is
|
||||
Pet_Id : in Swagger.Long;
|
||||
Additional_Metadata : in Swagger.Nullable_UString;
|
||||
File : in Swagger.File_Part_Type;
|
||||
Result : out Samples.Petstore.Models.ApiResponse_Type);
|
||||
Result : out Samples.Petstore.Models.ApiResponseType);
|
||||
|
||||
-- Delete purchase order by ID
|
||||
-- For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||
@ -75,36 +76,36 @@ package Samples.Petstore.Clients is
|
||||
-- Returns a map of status codes to quantities
|
||||
procedure Get_Inventory
|
||||
(Client : in out Client_Type;
|
||||
Result : out Swagger.Nullable_Integer_Map);
|
||||
Result : out Swagger.Integer_Map);
|
||||
|
||||
-- Find purchase order by ID
|
||||
-- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
procedure Get_Order_By_Id
|
||||
(Client : in out Client_Type;
|
||||
Order_Id : in Swagger.Long;
|
||||
Result : out Samples.Petstore.Models.Order_Type);
|
||||
Result : out Samples.Petstore.Models.OrderType);
|
||||
|
||||
-- Place an order for a pet
|
||||
procedure Place_Order
|
||||
(Client : in out Client_Type;
|
||||
P_Body : in Samples.Petstore.Models.Order_Type;
|
||||
Result : out Samples.Petstore.Models.Order_Type);
|
||||
P_Body : in Samples.Petstore.Models.OrderType;
|
||||
Result : out Samples.Petstore.Models.OrderType);
|
||||
|
||||
-- Create user
|
||||
-- This can only be done by the logged in user.
|
||||
procedure Create_User
|
||||
(Client : in out Client_Type;
|
||||
P_Body : in Samples.Petstore.Models.User_Type);
|
||||
P_Body : in Samples.Petstore.Models.UserType);
|
||||
|
||||
-- Creates list of users with given input array
|
||||
procedure Create_Users_With_Array_Input
|
||||
(Client : in out Client_Type;
|
||||
P_Body : in Samples.Petstore.Models.User_Type_Vectors.Vector);
|
||||
P_Body : in Samples.Petstore.Models.UserType_Vectors.Vector);
|
||||
|
||||
-- Creates list of users with given input array
|
||||
procedure Create_Users_With_List_Input
|
||||
(Client : in out Client_Type;
|
||||
P_Body : in Samples.Petstore.Models.User_Type_Vectors.Vector);
|
||||
P_Body : in Samples.Petstore.Models.UserType_Vectors.Vector);
|
||||
|
||||
-- Delete user
|
||||
-- This can only be done by the logged in user.
|
||||
@ -116,7 +117,7 @@ package Samples.Petstore.Clients is
|
||||
procedure Get_User_By_Name
|
||||
(Client : in out Client_Type;
|
||||
Username : in Swagger.UString;
|
||||
Result : out Samples.Petstore.Models.User_Type);
|
||||
Result : out Samples.Petstore.Models.UserType);
|
||||
|
||||
-- Logs user into the system
|
||||
procedure Login_User
|
||||
@ -134,6 +135,6 @@ package Samples.Petstore.Clients is
|
||||
procedure Update_User
|
||||
(Client : in out Client_Type;
|
||||
Username : in Swagger.UString;
|
||||
P_Body : in Samples.Petstore.Models.User_Type);
|
||||
P_Body : in Samples.Petstore.Models.UserType);
|
||||
|
||||
end Samples.Petstore.Clients;
|
||||
|
@ -1,13 +1,14 @@
|
||||
-- Swagger Petstore
|
||||
-- This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special_key` to test the authorization filters.
|
||||
-- OpenAPI Petstore
|
||||
-- This is a sample server Petstore server. For this sample, you can use the api key `special_key` to test the authorization filters.
|
||||
--
|
||||
-- OpenAPI spec version: 1.0.0
|
||||
-- Contact: apiteam@swagger.io
|
||||
--
|
||||
--
|
||||
-- NOTE: This package is auto generated by the swagger code generator 2.4.0-SNAPSHOT.
|
||||
-- https://github.com/swagger-api/swagger-codegen.git
|
||||
-- NOTE: This package is auto generated by OpenAPI-Generator 4.0.0-SNAPSHOT.
|
||||
-- https://openapi-generator.tech
|
||||
-- Do not edit the class manually.
|
||||
|
||||
|
||||
package body Samples.Petstore.Models is
|
||||
|
||||
use Swagger.Streams;
|
||||
@ -16,7 +17,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in ApiResponse_Type) is
|
||||
Value : in ApiResponseType) is
|
||||
begin
|
||||
Into.Start_Entity (Name);
|
||||
Into.Write_Entity ("code", Value.Code);
|
||||
@ -27,7 +28,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in ApiResponse_Type_Vectors.Vector) is
|
||||
Value : in ApiResponseType_Vectors.Vector) is
|
||||
begin
|
||||
Into.Start_Array (Name);
|
||||
for Item of Value loop
|
||||
@ -38,7 +39,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out ApiResponse_Type) is
|
||||
Value : out ApiResponseType) is
|
||||
Object : Swagger.Value_Type;
|
||||
begin
|
||||
Swagger.Streams.Deserialize (From, Name, Object);
|
||||
@ -49,9 +50,9 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out ApiResponse_Type_Vectors.Vector) is
|
||||
Value : out ApiResponseType_Vectors.Vector) is
|
||||
List : Swagger.Value_Array_Type;
|
||||
Item : ApiResponse_Type;
|
||||
Item : ApiResponseType;
|
||||
begin
|
||||
Value.Clear;
|
||||
Swagger.Streams.Deserialize (From, Name, List);
|
||||
@ -66,7 +67,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Tag_Type) is
|
||||
Value : in TagType) is
|
||||
begin
|
||||
Into.Start_Entity (Name);
|
||||
Serialize (Into, "id", Value.Id);
|
||||
@ -76,7 +77,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Tag_Type_Vectors.Vector) is
|
||||
Value : in TagType_Vectors.Vector) is
|
||||
begin
|
||||
Into.Start_Array (Name);
|
||||
for Item of Value loop
|
||||
@ -87,7 +88,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Tag_Type) is
|
||||
Value : out TagType) is
|
||||
Object : Swagger.Value_Type;
|
||||
begin
|
||||
Swagger.Streams.Deserialize (From, Name, Object);
|
||||
@ -97,9 +98,9 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Tag_Type_Vectors.Vector) is
|
||||
Value : out TagType_Vectors.Vector) is
|
||||
List : Swagger.Value_Array_Type;
|
||||
Item : Tag_Type;
|
||||
Item : TagType;
|
||||
begin
|
||||
Value.Clear;
|
||||
Swagger.Streams.Deserialize (From, Name, List);
|
||||
@ -114,7 +115,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Category_Type) is
|
||||
Value : in CategoryType) is
|
||||
begin
|
||||
Into.Start_Entity (Name);
|
||||
Serialize (Into, "id", Value.Id);
|
||||
@ -124,7 +125,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Category_Type_Vectors.Vector) is
|
||||
Value : in CategoryType_Vectors.Vector) is
|
||||
begin
|
||||
Into.Start_Array (Name);
|
||||
for Item of Value loop
|
||||
@ -135,7 +136,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Category_Type) is
|
||||
Value : out CategoryType) is
|
||||
Object : Swagger.Value_Type;
|
||||
begin
|
||||
Swagger.Streams.Deserialize (From, Name, Object);
|
||||
@ -145,9 +146,9 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Category_Type_Vectors.Vector) is
|
||||
Value : out CategoryType_Vectors.Vector) is
|
||||
List : Swagger.Value_Array_Type;
|
||||
Item : Category_Type;
|
||||
Item : CategoryType;
|
||||
begin
|
||||
Value.Clear;
|
||||
Swagger.Streams.Deserialize (From, Name, List);
|
||||
@ -162,7 +163,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Pet_Type) is
|
||||
Value : in PetType) is
|
||||
begin
|
||||
Into.Start_Entity (Name);
|
||||
Serialize (Into, "id", Value.Id);
|
||||
@ -176,7 +177,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Pet_Type_Vectors.Vector) is
|
||||
Value : in PetType_Vectors.Vector) is
|
||||
begin
|
||||
Into.Start_Array (Name);
|
||||
for Item of Value loop
|
||||
@ -187,23 +188,23 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Pet_Type) is
|
||||
Value : out PetType) is
|
||||
Object : Swagger.Value_Type;
|
||||
begin
|
||||
Swagger.Streams.Deserialize (From, Name, Object);
|
||||
Swagger.Streams.Deserialize (Object, "id", Value.Id);
|
||||
Deserialize (Object, "category", Value.Category);
|
||||
Swagger.Streams.Deserialize (Object, "category", Value.Category);
|
||||
Swagger.Streams.Deserialize (Object, "name", Value.Name);
|
||||
Swagger.Streams.Deserialize (Object, "photoUrls", Value.Photo_Urls);
|
||||
Deserialize (Object, "tags", Value.Tags);
|
||||
Swagger.Streams.Deserialize (Object, "tags", Value.Tags);
|
||||
Swagger.Streams.Deserialize (Object, "status", Value.Status);
|
||||
end Deserialize;
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Pet_Type_Vectors.Vector) is
|
||||
Value : out PetType_Vectors.Vector) is
|
||||
List : Swagger.Value_Array_Type;
|
||||
Item : Pet_Type;
|
||||
Item : PetType;
|
||||
begin
|
||||
Value.Clear;
|
||||
Swagger.Streams.Deserialize (From, Name, List);
|
||||
@ -218,7 +219,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in User_Type) is
|
||||
Value : in UserType) is
|
||||
begin
|
||||
Into.Start_Entity (Name);
|
||||
Serialize (Into, "id", Value.Id);
|
||||
@ -234,7 +235,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in User_Type_Vectors.Vector) is
|
||||
Value : in UserType_Vectors.Vector) is
|
||||
begin
|
||||
Into.Start_Array (Name);
|
||||
for Item of Value loop
|
||||
@ -245,7 +246,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out User_Type) is
|
||||
Value : out UserType) is
|
||||
Object : Swagger.Value_Type;
|
||||
begin
|
||||
Swagger.Streams.Deserialize (From, Name, Object);
|
||||
@ -261,9 +262,9 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out User_Type_Vectors.Vector) is
|
||||
Value : out UserType_Vectors.Vector) is
|
||||
List : Swagger.Value_Array_Type;
|
||||
Item : User_Type;
|
||||
Item : UserType;
|
||||
begin
|
||||
Value.Clear;
|
||||
Swagger.Streams.Deserialize (From, Name, List);
|
||||
@ -278,7 +279,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Order_Type) is
|
||||
Value : in OrderType) is
|
||||
begin
|
||||
Into.Start_Entity (Name);
|
||||
Serialize (Into, "id", Value.Id);
|
||||
@ -292,7 +293,7 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Order_Type_Vectors.Vector) is
|
||||
Value : in OrderType_Vectors.Vector) is
|
||||
begin
|
||||
Into.Start_Array (Name);
|
||||
for Item of Value loop
|
||||
@ -303,23 +304,23 @@ package body Samples.Petstore.Models is
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Order_Type) is
|
||||
Value : out OrderType) is
|
||||
Object : Swagger.Value_Type;
|
||||
begin
|
||||
Swagger.Streams.Deserialize (From, Name, Object);
|
||||
Swagger.Streams.Deserialize (Object, "id", Value.Id);
|
||||
Swagger.Streams.Deserialize (Object, "petId", Value.Pet_Id);
|
||||
Swagger.Streams.Deserialize (Object, "quantity", Value.Quantity);
|
||||
Deserialize (Object, "shipDate", Value.Ship_Date);
|
||||
Swagger.Streams.Deserialize (Object, "shipDate", Value.Ship_Date);
|
||||
Swagger.Streams.Deserialize (Object, "status", Value.Status);
|
||||
Swagger.Streams.Deserialize (Object, "complete", Value.Complete);
|
||||
end Deserialize;
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Order_Type_Vectors.Vector) is
|
||||
Value : out OrderType_Vectors.Vector) is
|
||||
List : Swagger.Value_Array_Type;
|
||||
Item : Order_Type;
|
||||
Item : OrderType;
|
||||
begin
|
||||
Value.Clear;
|
||||
Swagger.Streams.Deserialize (From, Name, List);
|
||||
|
@ -1,12 +1,13 @@
|
||||
-- Swagger Petstore
|
||||
-- This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special_key` to test the authorization filters.
|
||||
-- OpenAPI Petstore
|
||||
-- This is a sample server Petstore server. For this sample, you can use the api key `special_key` to test the authorization filters.
|
||||
--
|
||||
-- OpenAPI spec version: 1.0.0
|
||||
-- Contact: apiteam@swagger.io
|
||||
--
|
||||
--
|
||||
-- NOTE: This package is auto generated by the swagger code generator 2.4.0-SNAPSHOT.
|
||||
-- https://github.com/swagger-api/swagger-codegen.git
|
||||
-- NOTE: This package is auto generated by OpenAPI-Generator 4.0.0-SNAPSHOT.
|
||||
-- https://openapi-generator.tech
|
||||
-- Do not edit the class manually.
|
||||
|
||||
with Swagger.Streams;
|
||||
with Ada.Containers.Vectors;
|
||||
package Samples.Petstore.Models is
|
||||
@ -16,32 +17,32 @@ package Samples.Petstore.Models is
|
||||
-- An uploaded response
|
||||
-- Describes the result of uploading an image resource
|
||||
-- ------------------------------
|
||||
type ApiResponse_Type is
|
||||
type ApiResponseType is
|
||||
record
|
||||
Code : Swagger.Nullable_Integer;
|
||||
P_Type : Swagger.Nullable_UString;
|
||||
Message : Swagger.Nullable_UString;
|
||||
Code : Integer;
|
||||
P_Type : Swagger.UString;
|
||||
Message : Swagger.UString;
|
||||
end record;
|
||||
|
||||
package ApiResponse_Type_Vectors is
|
||||
package ApiResponseType_Vectors is
|
||||
new Ada.Containers.Vectors (Index_Type => Positive,
|
||||
Element_Type => ApiResponse_Type);
|
||||
Element_Type => ApiResponseType);
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in ApiResponse_Type);
|
||||
Value : in ApiResponseType);
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in ApiResponse_Type_Vectors.Vector);
|
||||
Value : in ApiResponseType_Vectors.Vector);
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out ApiResponse_Type);
|
||||
Value : out ApiResponseType);
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out ApiResponse_Type_Vectors.Vector);
|
||||
Value : out ApiResponseType_Vectors.Vector);
|
||||
|
||||
|
||||
|
||||
@ -49,31 +50,31 @@ package Samples.Petstore.Models is
|
||||
-- Pet Tag
|
||||
-- A tag for a pet
|
||||
-- ------------------------------
|
||||
type Tag_Type is
|
||||
type TagType is
|
||||
record
|
||||
Id : Swagger.Nullable_Long;
|
||||
Name : Swagger.Nullable_UString;
|
||||
Id : Swagger.Long;
|
||||
Name : Swagger.UString;
|
||||
end record;
|
||||
|
||||
package Tag_Type_Vectors is
|
||||
package TagType_Vectors is
|
||||
new Ada.Containers.Vectors (Index_Type => Positive,
|
||||
Element_Type => Tag_Type);
|
||||
Element_Type => TagType);
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Tag_Type);
|
||||
Value : in TagType);
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Tag_Type_Vectors.Vector);
|
||||
Value : in TagType_Vectors.Vector);
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Tag_Type);
|
||||
Value : out TagType);
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Tag_Type_Vectors.Vector);
|
||||
Value : out TagType_Vectors.Vector);
|
||||
|
||||
|
||||
|
||||
@ -81,31 +82,31 @@ package Samples.Petstore.Models is
|
||||
-- Pet category
|
||||
-- A category for a pet
|
||||
-- ------------------------------
|
||||
type Category_Type is
|
||||
type CategoryType is
|
||||
record
|
||||
Id : Swagger.Nullable_Long;
|
||||
Name : Swagger.Nullable_UString;
|
||||
Id : Swagger.Long;
|
||||
Name : Swagger.UString;
|
||||
end record;
|
||||
|
||||
package Category_Type_Vectors is
|
||||
package CategoryType_Vectors is
|
||||
new Ada.Containers.Vectors (Index_Type => Positive,
|
||||
Element_Type => Category_Type);
|
||||
Element_Type => CategoryType);
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Category_Type);
|
||||
Value : in CategoryType);
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Category_Type_Vectors.Vector);
|
||||
Value : in CategoryType_Vectors.Vector);
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Category_Type);
|
||||
Value : out CategoryType);
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Category_Type_Vectors.Vector);
|
||||
Value : out CategoryType_Vectors.Vector);
|
||||
|
||||
|
||||
|
||||
@ -113,35 +114,35 @@ package Samples.Petstore.Models is
|
||||
-- a Pet
|
||||
-- A pet for sale in the pet store
|
||||
-- ------------------------------
|
||||
type Pet_Type is
|
||||
type PetType is
|
||||
record
|
||||
Id : Swagger.Nullable_Long;
|
||||
Category : Samples.Petstore.Models.Category_Type;
|
||||
Id : Swagger.Long;
|
||||
Category : Samples.Petstore.Models.CategoryType;
|
||||
Name : Swagger.UString;
|
||||
Photo_Urls : Swagger.Nullable_UString_Vectors.Vector;
|
||||
Tags : Samples.Petstore.Models.Tag_Type_Vectors.Vector;
|
||||
Status : Swagger.Nullable_UString;
|
||||
Photo_Urls : Swagger.UString_Vectors.Vector;
|
||||
Tags : Samples.Petstore.Models.TagType_Vectors.Vector;
|
||||
Status : Swagger.UString;
|
||||
end record;
|
||||
|
||||
package Pet_Type_Vectors is
|
||||
package PetType_Vectors is
|
||||
new Ada.Containers.Vectors (Index_Type => Positive,
|
||||
Element_Type => Pet_Type);
|
||||
Element_Type => PetType);
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Pet_Type);
|
||||
Value : in PetType);
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Pet_Type_Vectors.Vector);
|
||||
Value : in PetType_Vectors.Vector);
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Pet_Type);
|
||||
Value : out PetType);
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Pet_Type_Vectors.Vector);
|
||||
Value : out PetType_Vectors.Vector);
|
||||
|
||||
|
||||
|
||||
@ -149,37 +150,37 @@ package Samples.Petstore.Models is
|
||||
-- a User
|
||||
-- A User who is purchasing from the pet store
|
||||
-- ------------------------------
|
||||
type User_Type is
|
||||
type UserType is
|
||||
record
|
||||
Id : Swagger.Nullable_Long;
|
||||
Username : Swagger.Nullable_UString;
|
||||
First_Name : Swagger.Nullable_UString;
|
||||
Last_Name : Swagger.Nullable_UString;
|
||||
Email : Swagger.Nullable_UString;
|
||||
Password : Swagger.Nullable_UString;
|
||||
Phone : Swagger.Nullable_UString;
|
||||
User_Status : Swagger.Nullable_Integer;
|
||||
Id : Swagger.Long;
|
||||
Username : Swagger.UString;
|
||||
First_Name : Swagger.UString;
|
||||
Last_Name : Swagger.UString;
|
||||
Email : Swagger.UString;
|
||||
Password : Swagger.UString;
|
||||
Phone : Swagger.UString;
|
||||
User_Status : Integer;
|
||||
end record;
|
||||
|
||||
package User_Type_Vectors is
|
||||
package UserType_Vectors is
|
||||
new Ada.Containers.Vectors (Index_Type => Positive,
|
||||
Element_Type => User_Type);
|
||||
Element_Type => UserType);
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in User_Type);
|
||||
Value : in UserType);
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in User_Type_Vectors.Vector);
|
||||
Value : in UserType_Vectors.Vector);
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out User_Type);
|
||||
Value : out UserType);
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out User_Type_Vectors.Vector);
|
||||
Value : out UserType_Vectors.Vector);
|
||||
|
||||
|
||||
|
||||
@ -187,35 +188,35 @@ package Samples.Petstore.Models is
|
||||
-- Pet Order
|
||||
-- An order for a pets from the pet store
|
||||
-- ------------------------------
|
||||
type Order_Type is
|
||||
type OrderType is
|
||||
record
|
||||
Id : Swagger.Nullable_Long;
|
||||
Pet_Id : Swagger.Nullable_Long;
|
||||
Quantity : Swagger.Nullable_Integer;
|
||||
Ship_Date : Swagger.Nullable_Date;
|
||||
Status : Swagger.Nullable_UString;
|
||||
Complete : Swagger.Nullable_Boolean;
|
||||
Id : Swagger.Long;
|
||||
Pet_Id : Swagger.Long;
|
||||
Quantity : Integer;
|
||||
Ship_Date : Swagger.Datetime;
|
||||
Status : Swagger.UString;
|
||||
Complete : Boolean;
|
||||
end record;
|
||||
|
||||
package Order_Type_Vectors is
|
||||
package OrderType_Vectors is
|
||||
new Ada.Containers.Vectors (Index_Type => Positive,
|
||||
Element_Type => Order_Type);
|
||||
Element_Type => OrderType);
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Order_Type);
|
||||
Value : in OrderType);
|
||||
|
||||
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
|
||||
Name : in String;
|
||||
Value : in Order_Type_Vectors.Vector);
|
||||
Value : in OrderType_Vectors.Vector);
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Order_Type);
|
||||
Value : out OrderType);
|
||||
|
||||
procedure Deserialize (From : in Swagger.Value_Type;
|
||||
Name : in String;
|
||||
Value : out Order_Type_Vectors.Vector);
|
||||
Value : out OrderType_Vectors.Vector);
|
||||
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
-- Swagger Petstore
|
||||
-- This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special_key` to test the authorization filters.
|
||||
-- OpenAPI Petstore
|
||||
-- This is a sample server Petstore server. For this sample, you can use the api key `special_key` to test the authorization filters.
|
||||
-- ------------ EDIT NOTE ------------
|
||||
-- This file was generated with swagger-codegen. You can modify it to implement
|
||||
-- This file was generated with openapi-generator. You can modify it to implement
|
||||
-- the server. After you modify this file, you should add the following line
|
||||
-- to the .swagger-codegen-ignore file:
|
||||
-- to the .openapi-generator-ignore file:
|
||||
--
|
||||
-- src/samples-petstore.ads
|
||||
--
|
||||
|
@ -1,9 +1,9 @@
|
||||
-- Swagger Petstore
|
||||
-- This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special_key` to test the authorization filters.
|
||||
-- OpenAPI Petstore
|
||||
-- This is a sample server Petstore server. For this sample, you can use the api key `special_key` to test the authorization filters.
|
||||
-- ------------ EDIT NOTE ------------
|
||||
-- This file was generated with swagger-codegen. You can modify it to implement
|
||||
-- This file was generated with openapi-generator. You can modify it to implement
|
||||
-- the server. After you modify this file, you should add the following line
|
||||
-- to the .swagger-codegen-ignore file:
|
||||
-- to the .openapi-generator-ignore file:
|
||||
--
|
||||
-- src/samples-petstore.ads
|
||||
--
|
||||
|
@ -17,6 +17,7 @@ pub struct Configuration {
|
||||
pub client: reqwest::Client,
|
||||
pub basic_auth: Option<BasicAuth>,
|
||||
pub oauth_access_token: Option<String>,
|
||||
pub bearer_access_token: Option<String>,
|
||||
pub api_key: Option<ApiKey>,
|
||||
// TODO: take an oauth2 token source, similar to the go one
|
||||
}
|
||||
@ -38,10 +39,11 @@ impl Default for Configuration {
|
||||
fn default() -> Self {
|
||||
Configuration {
|
||||
base_path: "http://petstore.swagger.io/v2".to_owned(),
|
||||
user_agent: Some("Swagger-Codegen/1.0.0/rust".to_owned()),
|
||||
user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()),
|
||||
client: reqwest::Client::new(),
|
||||
basic_auth: None,
|
||||
oauth_access_token: None,
|
||||
bearer_access_token: None,
|
||||
api_key: None,
|
||||
}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
3.3.0-SNAPSHOT
|
||||
4.0.0-SNAPSHOT
|
@ -23,7 +23,7 @@ import {
|
||||
* addPet - parameters interface
|
||||
*/
|
||||
export interface IAddPetParams {
|
||||
pet: Pet;
|
||||
body: Pet;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -59,7 +59,7 @@ export interface IGetPetByIdParams {
|
||||
* updatePet - parameters interface
|
||||
*/
|
||||
export interface IUpdatePetParams {
|
||||
pet: Pet;
|
||||
body: Pet;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -98,11 +98,11 @@ export class PetApi extends Api {
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
* @param params.pet Pet object that needs to be added to the store
|
||||
* @param params.body Pet object that needs to be added to the store
|
||||
*/
|
||||
async addPet(params: IAddPetParams): Promise<any> {
|
||||
// Verify required parameters are set
|
||||
this.ensureParamIsSet('addPet', params, 'pet');
|
||||
this.ensureParamIsSet('addPet', params, 'body');
|
||||
|
||||
// Create URL to call
|
||||
const url = `${this.basePath}/pet`;
|
||||
@ -112,7 +112,7 @@ export class PetApi extends Api {
|
||||
.asPost()
|
||||
// Encode body parameter
|
||||
.withHeader('content-type', 'application/json')
|
||||
.withContent(JSON.stringify(params['pet'] || {}))
|
||||
.withContent(JSON.stringify(params['body'] || {}))
|
||||
|
||||
// Authentication 'petstore_auth' required
|
||||
// Send the request
|
||||
@ -251,11 +251,11 @@ export class PetApi extends Api {
|
||||
|
||||
/**
|
||||
* Update an existing pet
|
||||
* @param params.pet Pet object that needs to be added to the store
|
||||
* @param params.body Pet object that needs to be added to the store
|
||||
*/
|
||||
async updatePet(params: IUpdatePetParams): Promise<any> {
|
||||
// Verify required parameters are set
|
||||
this.ensureParamIsSet('updatePet', params, 'pet');
|
||||
this.ensureParamIsSet('updatePet', params, 'body');
|
||||
|
||||
// Create URL to call
|
||||
const url = `${this.basePath}/pet`;
|
||||
@ -265,7 +265,7 @@ export class PetApi extends Api {
|
||||
.asPut()
|
||||
// Encode body parameter
|
||||
.withHeader('content-type', 'application/json')
|
||||
.withContent(JSON.stringify(params['pet'] || {}))
|
||||
.withContent(JSON.stringify(params['body'] || {}))
|
||||
|
||||
// Authentication 'petstore_auth' required
|
||||
// Send the request
|
||||
|
@ -20,7 +20,7 @@ It can be used in both TypeScript and JavaScript. In TypeScript, the definition
|
||||
|
||||
### Installation ###
|
||||
|
||||
`swagger-codegen` does not generate JavaScript directly. The generated Node module comes with `package.json` that bundles `typescript` and `typings` so it can self-compile during `prepublish` stage. The should be run automatically during `npm install` or `npm publish`.
|
||||
`openapi-generator` does not generate JavaScript directly. The generated Node module comes with `package.json` that bundles `typescript` and `typings` so it can self-compile during `prepublish` stage. The should be run automatically during `npm install` or `npm publish`.
|
||||
|
||||
CAVEAT: Due to [privilege implications](https://docs.npmjs.com/misc/scripts#user), `npm` would skip all scripts if the user is `root`. You would need to manually run it with `npm run prepublish` or run `npm install --unsafe-perm`.
|
||||
|
||||
|
@ -42,7 +42,7 @@ export interface IGetOrderByIdParams {
|
||||
* placeOrder - parameters interface
|
||||
*/
|
||||
export interface IPlaceOrderParams {
|
||||
order: Order;
|
||||
body: Order;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -146,11 +146,11 @@ export class StoreApi extends Api {
|
||||
|
||||
/**
|
||||
* Place an order for a pet
|
||||
* @param params.order order placed for purchasing the pet
|
||||
* @param params.body order placed for purchasing the pet
|
||||
*/
|
||||
async placeOrder(params: IPlaceOrderParams): Promise<Order> {
|
||||
// Verify required parameters are set
|
||||
this.ensureParamIsSet('placeOrder', params, 'order');
|
||||
this.ensureParamIsSet('placeOrder', params, 'body');
|
||||
|
||||
// Create URL to call
|
||||
const url = `${this.basePath}/store/order`;
|
||||
@ -160,7 +160,7 @@ export class StoreApi extends Api {
|
||||
.asPost()
|
||||
// Encode body parameter
|
||||
.withHeader('content-type', 'application/json')
|
||||
.withContent(JSON.stringify(params['order'] || {}))
|
||||
.withContent(JSON.stringify(params['body'] || {}))
|
||||
|
||||
// Send the request
|
||||
.send();
|
||||
|
@ -22,21 +22,21 @@ import {
|
||||
* createUser - parameters interface
|
||||
*/
|
||||
export interface ICreateUserParams {
|
||||
user: User;
|
||||
body: User;
|
||||
}
|
||||
|
||||
/**
|
||||
* createUsersWithArrayInput - parameters interface
|
||||
*/
|
||||
export interface ICreateUsersWithArrayInputParams {
|
||||
user: Array<User>;
|
||||
body: Array<User>;
|
||||
}
|
||||
|
||||
/**
|
||||
* createUsersWithListInput - parameters interface
|
||||
*/
|
||||
export interface ICreateUsersWithListInputParams {
|
||||
user: Array<User>;
|
||||
body: Array<User>;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -72,7 +72,7 @@ export interface ILogoutUserParams {
|
||||
*/
|
||||
export interface IUpdateUserParams {
|
||||
username: string;
|
||||
user: User;
|
||||
body: User;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -94,11 +94,11 @@ export class UserApi extends Api {
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* @param params.user Created user object
|
||||
* @param params.body Created user object
|
||||
*/
|
||||
async createUser(params: ICreateUserParams): Promise<any> {
|
||||
// Verify required parameters are set
|
||||
this.ensureParamIsSet('createUser', params, 'user');
|
||||
this.ensureParamIsSet('createUser', params, 'body');
|
||||
|
||||
// Create URL to call
|
||||
const url = `${this.basePath}/user`;
|
||||
@ -108,7 +108,7 @@ export class UserApi extends Api {
|
||||
.asPost()
|
||||
// Encode body parameter
|
||||
.withHeader('content-type', 'application/json')
|
||||
.withContent(JSON.stringify(params['user'] || {}))
|
||||
.withContent(JSON.stringify(params['body'] || {}))
|
||||
|
||||
// Send the request
|
||||
.send();
|
||||
@ -123,11 +123,11 @@ export class UserApi extends Api {
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param params.user List of user object
|
||||
* @param params.body List of user object
|
||||
*/
|
||||
async createUsersWithArrayInput(params: ICreateUsersWithArrayInputParams): Promise<any> {
|
||||
// Verify required parameters are set
|
||||
this.ensureParamIsSet('createUsersWithArrayInput', params, 'user');
|
||||
this.ensureParamIsSet('createUsersWithArrayInput', params, 'body');
|
||||
|
||||
// Create URL to call
|
||||
const url = `${this.basePath}/user/createWithArray`;
|
||||
@ -137,7 +137,7 @@ export class UserApi extends Api {
|
||||
.asPost()
|
||||
// Encode body parameter
|
||||
.withHeader('content-type', 'application/json')
|
||||
.withContent(JSON.stringify(params['user'] || {}))
|
||||
.withContent(JSON.stringify(params['body'] || {}))
|
||||
|
||||
// Send the request
|
||||
.send();
|
||||
@ -152,11 +152,11 @@ export class UserApi extends Api {
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param params.user List of user object
|
||||
* @param params.body List of user object
|
||||
*/
|
||||
async createUsersWithListInput(params: ICreateUsersWithListInputParams): Promise<any> {
|
||||
// Verify required parameters are set
|
||||
this.ensureParamIsSet('createUsersWithListInput', params, 'user');
|
||||
this.ensureParamIsSet('createUsersWithListInput', params, 'body');
|
||||
|
||||
// Create URL to call
|
||||
const url = `${this.basePath}/user/createWithList`;
|
||||
@ -166,7 +166,7 @@ export class UserApi extends Api {
|
||||
.asPost()
|
||||
// Encode body parameter
|
||||
.withHeader('content-type', 'application/json')
|
||||
.withContent(JSON.stringify(params['user'] || {}))
|
||||
.withContent(JSON.stringify(params['body'] || {}))
|
||||
|
||||
// Send the request
|
||||
.send();
|
||||
@ -295,12 +295,12 @@ export class UserApi extends Api {
|
||||
* Updated user
|
||||
* This can only be done by the logged in user.
|
||||
* @param params.username name that need to be deleted
|
||||
* @param params.user Updated user object
|
||||
* @param params.body Updated user object
|
||||
*/
|
||||
async updateUser(params: IUpdateUserParams): Promise<any> {
|
||||
// Verify required parameters are set
|
||||
this.ensureParamIsSet('updateUser', params, 'username');
|
||||
this.ensureParamIsSet('updateUser', params, 'user');
|
||||
this.ensureParamIsSet('updateUser', params, 'body');
|
||||
|
||||
// Create URL to call
|
||||
const url = `${this.basePath}/user/{username}`
|
||||
@ -311,7 +311,7 @@ export class UserApi extends Api {
|
||||
.asPut()
|
||||
// Encode body parameter
|
||||
.withHeader('content-type', 'application/json')
|
||||
.withContent(JSON.stringify(params['user'] || {}))
|
||||
.withContent(JSON.stringify(params['body'] || {}))
|
||||
|
||||
// Send the request
|
||||
.send();
|
||||
|
@ -1 +1 @@
|
||||
3.2.0-SNAPSHOT
|
||||
4.0.0-SNAPSHOT
|
@ -7,13 +7,13 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
* Source files are located at:
|
||||
*
|
||||
* > swagger-codegen/modules/swagger-codegen/src/main/resources/php-laravel/
|
||||
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
|
||||
*/
|
||||
|
||||
|
||||
@ -46,10 +46,10 @@ class AnotherFakeController extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['client'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $client when calling call123TestSpecialTags');
|
||||
if (!isset($input['body'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $body when calling call123TestSpecialTags');
|
||||
}
|
||||
$client = $input['client'];
|
||||
$body = $input['body'];
|
||||
|
||||
|
||||
return response('How about implementing call123TestSpecialTags as a patch method ?');
|
||||
|
@ -7,13 +7,13 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
* Source files are located at:
|
||||
*
|
||||
* > swagger-codegen/modules/swagger-codegen/src/main/resources/php-laravel/
|
||||
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
|
||||
*/
|
||||
|
||||
|
||||
@ -46,10 +46,10 @@ class FakeClassnameTags123Controller extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['client'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $client when calling testClassname');
|
||||
if (!isset($input['body'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $body when calling testClassname');
|
||||
}
|
||||
$client = $input['client'];
|
||||
$body = $input['body'];
|
||||
|
||||
|
||||
return response('How about implementing testClassname as a patch method ?');
|
||||
|
@ -7,13 +7,13 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
* Source files are located at:
|
||||
*
|
||||
* > swagger-codegen/modules/swagger-codegen/src/main/resources/php-laravel/
|
||||
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
|
||||
*/
|
||||
|
||||
|
||||
@ -46,10 +46,10 @@ class FakeController extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['client'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $client when calling testClientModel');
|
||||
if (!isset($input['body'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $body when calling testClientModel');
|
||||
}
|
||||
$client = $input['client'];
|
||||
$body = $input['body'];
|
||||
|
||||
|
||||
return response('How about implementing testClientModel as a patch method ?');
|
||||
@ -92,13 +92,13 @@ class FakeController extends Controller
|
||||
}
|
||||
$double = $input['double'];
|
||||
|
||||
if (!isset($input['pattern_without_delimiter'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $pattern_without_delimiter when calling testEndpointParameters');
|
||||
if (!isset($input['patternWithoutDelimiter'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $patternWithoutDelimiter when calling testEndpointParameters');
|
||||
}
|
||||
if (!preg_match("/^[A-Z].*/", $input['pattern_without_delimiter'])) {
|
||||
throw new \InvalidArgumentException('invalid value for $pattern_without_delimiter when calling FakeController.testEndpointParameters, must conform to the pattern /^[A-Z].*/.');
|
||||
if (!preg_match("/^[A-Z].*/", $input['patternWithoutDelimiter'])) {
|
||||
throw new \InvalidArgumentException('invalid value for $patternWithoutDelimiter when calling FakeController.testEndpointParameters, must conform to the pattern /^[A-Z].*/.');
|
||||
}
|
||||
$pattern_without_delimiter = $input['pattern_without_delimiter'];
|
||||
$patternWithoutDelimiter = $input['patternWithoutDelimiter'];
|
||||
|
||||
if (!isset($input['byte'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $byte when calling testEndpointParameters');
|
||||
@ -137,7 +137,7 @@ class FakeController extends Controller
|
||||
|
||||
$date = $input['date'];
|
||||
|
||||
$date_time = $input['date_time'];
|
||||
$dateTime = $input['dateTime'];
|
||||
|
||||
if (strlen($input['password']) > 64) {
|
||||
throw new \InvalidArgumentException('invalid length for $password when calling FakeController.testEndpointParameters, must be smaller than or equal to 64.');
|
||||
@ -168,25 +168,65 @@ class FakeController extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
$enum_header_string_array = $input['enum_header_string_array'];
|
||||
$enumHeaderStringArray = $input['enumHeaderStringArray'];
|
||||
|
||||
$enum_header_string = $input['enum_header_string'];
|
||||
$enumHeaderString = $input['enumHeaderString'];
|
||||
|
||||
$enum_query_string_array = $input['enum_query_string_array'];
|
||||
$enumQueryStringArray = $input['enumQueryStringArray'];
|
||||
|
||||
$enum_query_string = $input['enum_query_string'];
|
||||
$enumQueryString = $input['enumQueryString'];
|
||||
|
||||
$enum_query_integer = $input['enum_query_integer'];
|
||||
$enumQueryInteger = $input['enumQueryInteger'];
|
||||
|
||||
$enum_query_double = $input['enum_query_double'];
|
||||
$enumQueryDouble = $input['enumQueryDouble'];
|
||||
|
||||
$enum_form_string_array = $input['enum_form_string_array'];
|
||||
$enumFormStringArray = $input['enumFormStringArray'];
|
||||
|
||||
$enum_form_string = $input['enum_form_string'];
|
||||
$enumFormString = $input['enumFormString'];
|
||||
|
||||
|
||||
return response('How about implementing testEnumParameters as a get method ?');
|
||||
}
|
||||
/**
|
||||
* Operation testGroupParameters
|
||||
*
|
||||
* Fake endpoint to test group parameters (optional).
|
||||
*
|
||||
*
|
||||
* @return Http response
|
||||
*/
|
||||
public function testGroupParameters()
|
||||
{
|
||||
$input = Request::all();
|
||||
|
||||
//path params validation
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['requiredStringGroup'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $requiredStringGroup when calling testGroupParameters');
|
||||
}
|
||||
$requiredStringGroup = $input['requiredStringGroup'];
|
||||
|
||||
if (!isset($input['requiredBooleanGroup'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $requiredBooleanGroup when calling testGroupParameters');
|
||||
}
|
||||
$requiredBooleanGroup = $input['requiredBooleanGroup'];
|
||||
|
||||
if (!isset($input['requiredInt64Group'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $requiredInt64Group when calling testGroupParameters');
|
||||
}
|
||||
$requiredInt64Group = $input['requiredInt64Group'];
|
||||
|
||||
$stringGroup = $input['stringGroup'];
|
||||
|
||||
$booleanGroup = $input['booleanGroup'];
|
||||
|
||||
$int64Group = $input['int64Group'];
|
||||
|
||||
|
||||
return response('How about implementing testGroupParameters as a delete method ?');
|
||||
}
|
||||
/**
|
||||
* Operation testBodyWithFileSchema
|
||||
*
|
||||
@ -203,10 +243,10 @@ class FakeController extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['file_schema_test_class'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $file_schema_test_class when calling testBodyWithFileSchema');
|
||||
if (!isset($input['body'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $body when calling testBodyWithFileSchema');
|
||||
}
|
||||
$file_schema_test_class = $input['file_schema_test_class'];
|
||||
$body = $input['body'];
|
||||
|
||||
|
||||
return response('How about implementing testBodyWithFileSchema as a put method ?');
|
||||
@ -232,14 +272,38 @@ class FakeController extends Controller
|
||||
}
|
||||
$query = $input['query'];
|
||||
|
||||
if (!isset($input['user'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $user when calling testBodyWithQueryParams');
|
||||
if (!isset($input['body'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $body when calling testBodyWithQueryParams');
|
||||
}
|
||||
$user = $input['user'];
|
||||
$body = $input['body'];
|
||||
|
||||
|
||||
return response('How about implementing testBodyWithQueryParams as a put method ?');
|
||||
}
|
||||
/**
|
||||
* Operation createXmlItem
|
||||
*
|
||||
* creates an XmlItem.
|
||||
*
|
||||
*
|
||||
* @return Http response
|
||||
*/
|
||||
public function createXmlItem()
|
||||
{
|
||||
$input = Request::all();
|
||||
|
||||
//path params validation
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['xmlItem'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $xmlItem when calling createXmlItem');
|
||||
}
|
||||
$xmlItem = $input['xmlItem'];
|
||||
|
||||
|
||||
return response('How about implementing createXmlItem as a post method ?');
|
||||
}
|
||||
/**
|
||||
* Operation testInlineAdditionalProperties
|
||||
*
|
||||
@ -256,10 +320,10 @@ class FakeController extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['request_body'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $request_body when calling testInlineAdditionalProperties');
|
||||
if (!isset($input['param'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $param when calling testInlineAdditionalProperties');
|
||||
}
|
||||
$request_body = $input['request_body'];
|
||||
$param = $input['param'];
|
||||
|
||||
|
||||
return response('How about implementing testInlineAdditionalProperties as a post method ?');
|
||||
@ -330,7 +394,7 @@ class FakeController extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
$outer_composite = $input['outer_composite'];
|
||||
$body = $input['body'];
|
||||
|
||||
|
||||
return response('How about implementing fakeOuterCompositeSerialize as a post method ?');
|
||||
|
@ -7,13 +7,13 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
* Source files are located at:
|
||||
*
|
||||
* > swagger-codegen/modules/swagger-codegen/src/main/resources/php-laravel/
|
||||
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
|
||||
*/
|
||||
|
||||
|
||||
@ -35,11 +35,11 @@ class PetController extends Controller
|
||||
*
|
||||
* uploads an image (required).
|
||||
*
|
||||
* @param int $pet_id ID of pet to update (required)
|
||||
* @param int $petId ID of pet to update (required)
|
||||
*
|
||||
* @return Http response
|
||||
*/
|
||||
public function uploadFileWithRequiredFile($pet_id)
|
||||
public function uploadFileWithRequiredFile($petId)
|
||||
{
|
||||
$input = Request::all();
|
||||
|
||||
@ -66,10 +66,10 @@ class PetController extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['pet'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $pet when calling addPet');
|
||||
if (!isset($input['body'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $body when calling addPet');
|
||||
}
|
||||
$pet = $input['pet'];
|
||||
$body = $input['body'];
|
||||
|
||||
|
||||
return response('How about implementing addPet as a post method ?');
|
||||
@ -90,10 +90,10 @@ class PetController extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['pet'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $pet when calling updatePet');
|
||||
if (!isset($input['body'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $body when calling updatePet');
|
||||
}
|
||||
$pet = $input['pet'];
|
||||
$body = $input['body'];
|
||||
|
||||
|
||||
return response('How about implementing updatePet as a put method ?');
|
||||
@ -151,11 +151,11 @@ class PetController extends Controller
|
||||
*
|
||||
* Deletes a pet.
|
||||
*
|
||||
* @param int $pet_id Pet id to delete (required)
|
||||
* @param int $petId Pet id to delete (required)
|
||||
*
|
||||
* @return Http response
|
||||
*/
|
||||
public function deletePet($pet_id)
|
||||
public function deletePet($petId)
|
||||
{
|
||||
$input = Request::all();
|
||||
|
||||
@ -171,11 +171,11 @@ class PetController extends Controller
|
||||
*
|
||||
* Find pet by ID.
|
||||
*
|
||||
* @param int $pet_id ID of pet to return (required)
|
||||
* @param int $petId ID of pet to return (required)
|
||||
*
|
||||
* @return Http response
|
||||
*/
|
||||
public function getPetById($pet_id)
|
||||
public function getPetById($petId)
|
||||
{
|
||||
$input = Request::all();
|
||||
|
||||
@ -191,11 +191,11 @@ class PetController extends Controller
|
||||
*
|
||||
* Updates a pet in the store with form data.
|
||||
*
|
||||
* @param int $pet_id ID of pet that needs to be updated (required)
|
||||
* @param int $petId ID of pet that needs to be updated (required)
|
||||
*
|
||||
* @return Http response
|
||||
*/
|
||||
public function updatePetWithForm($pet_id)
|
||||
public function updatePetWithForm($petId)
|
||||
{
|
||||
$input = Request::all();
|
||||
|
||||
@ -211,11 +211,11 @@ class PetController extends Controller
|
||||
*
|
||||
* uploads an image.
|
||||
*
|
||||
* @param int $pet_id ID of pet to update (required)
|
||||
* @param int $petId ID of pet to update (required)
|
||||
*
|
||||
* @return Http response
|
||||
*/
|
||||
public function uploadFile($pet_id)
|
||||
public function uploadFile($petId)
|
||||
{
|
||||
$input = Request::all();
|
||||
|
||||
|
@ -7,13 +7,13 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
* Source files are located at:
|
||||
*
|
||||
* > swagger-codegen/modules/swagger-codegen/src/main/resources/php-laravel/
|
||||
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
|
||||
*/
|
||||
|
||||
|
||||
@ -65,10 +65,10 @@ class StoreController extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['order'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $order when calling placeOrder');
|
||||
if (!isset($input['body'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $body when calling placeOrder');
|
||||
}
|
||||
$order = $input['order'];
|
||||
$body = $input['body'];
|
||||
|
||||
|
||||
return response('How about implementing placeOrder as a post method ?');
|
||||
@ -78,11 +78,11 @@ class StoreController extends Controller
|
||||
*
|
||||
* Delete purchase order by ID.
|
||||
*
|
||||
* @param string $order_id ID of the order that needs to be deleted (required)
|
||||
* @param string $orderId ID of the order that needs to be deleted (required)
|
||||
*
|
||||
* @return Http response
|
||||
*/
|
||||
public function deleteOrder($order_id)
|
||||
public function deleteOrder($orderId)
|
||||
{
|
||||
$input = Request::all();
|
||||
|
||||
@ -98,20 +98,20 @@ class StoreController extends Controller
|
||||
*
|
||||
* Find purchase order by ID.
|
||||
*
|
||||
* @param int $order_id ID of pet that needs to be fetched (required)
|
||||
* @param int $orderId ID of pet that needs to be fetched (required)
|
||||
*
|
||||
* @return Http response
|
||||
*/
|
||||
public function getOrderById($order_id)
|
||||
public function getOrderById($orderId)
|
||||
{
|
||||
$input = Request::all();
|
||||
|
||||
//path params validation
|
||||
if ($order_id > 5) {
|
||||
throw new \InvalidArgumentException('invalid value for $order_id when calling StoreController.getOrderById, must be smaller than or equal to 5.');
|
||||
if ($orderId > 5) {
|
||||
throw new \InvalidArgumentException('invalid value for $orderId when calling StoreController.getOrderById, must be smaller than or equal to 5.');
|
||||
}
|
||||
if ($order_id < 1) {
|
||||
throw new \InvalidArgumentException('invalid value for $order_id when calling StoreController.getOrderById, must be bigger than or equal to 1.');
|
||||
if ($orderId < 1) {
|
||||
throw new \InvalidArgumentException('invalid value for $orderId when calling StoreController.getOrderById, must be bigger than or equal to 1.');
|
||||
}
|
||||
|
||||
|
||||
|
@ -7,13 +7,13 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
* Source files are located at:
|
||||
*
|
||||
* > swagger-codegen/modules/swagger-codegen/src/main/resources/php-laravel/
|
||||
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
|
||||
*/
|
||||
|
||||
|
||||
@ -46,10 +46,10 @@ class UserController extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['user'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $user when calling createUser');
|
||||
if (!isset($input['body'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $body when calling createUser');
|
||||
}
|
||||
$user = $input['user'];
|
||||
$body = $input['body'];
|
||||
|
||||
|
||||
return response('How about implementing createUser as a post method ?');
|
||||
@ -70,10 +70,10 @@ class UserController extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['user'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $user when calling createUsersWithArrayInput');
|
||||
if (!isset($input['body'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $body when calling createUsersWithArrayInput');
|
||||
}
|
||||
$user = $input['user'];
|
||||
$body = $input['body'];
|
||||
|
||||
|
||||
return response('How about implementing createUsersWithArrayInput as a post method ?');
|
||||
@ -94,10 +94,10 @@ class UserController extends Controller
|
||||
|
||||
|
||||
//not path params validation
|
||||
if (!isset($input['user'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $user when calling createUsersWithListInput');
|
||||
if (!isset($input['body'])) {
|
||||
throw new \InvalidArgumentException('Missing the required parameter $body when calling createUsersWithListInput');
|
||||
}
|
||||
$user = $input['user'];
|
||||
$body = $input['body'];
|
||||
|
||||
|
||||
return response('How about implementing createUsersWithListInput as a post method ?');
|
||||
|
@ -9,10 +9,10 @@ namespace app\Models;
|
||||
*/
|
||||
class AdditionalPropertiesClass {
|
||||
|
||||
/** @var map[string,string] $map_property */
|
||||
private $map_property;
|
||||
/** @var map[string,string] $mapProperty */
|
||||
private $mapProperty;
|
||||
|
||||
/** @var map[string,map[string,string]] $map_of_map_property */
|
||||
private $map_of_map_property;
|
||||
/** @var map[string,map[string,string]] $mapOfMapProperty */
|
||||
private $mapOfMapProperty;
|
||||
|
||||
}
|
||||
|
@ -9,8 +9,8 @@ namespace app\Models;
|
||||
*/
|
||||
class Animal {
|
||||
|
||||
/** @var string $class_name */
|
||||
private $class_name;
|
||||
/** @var string $className */
|
||||
private $className;
|
||||
|
||||
/** @var string $color */
|
||||
private $color;
|
||||
|
@ -9,7 +9,7 @@ namespace app\Models;
|
||||
*/
|
||||
class ArrayOfArrayOfNumberOnly {
|
||||
|
||||
/** @var float[][] $array_array_number */
|
||||
private $array_array_number;
|
||||
/** @var float[][] $arrayArrayNumber */
|
||||
private $arrayArrayNumber;
|
||||
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ namespace app\Models;
|
||||
*/
|
||||
class ArrayOfNumberOnly {
|
||||
|
||||
/** @var float[] $array_number */
|
||||
private $array_number;
|
||||
/** @var float[] $arrayNumber */
|
||||
private $arrayNumber;
|
||||
|
||||
}
|
||||
|
@ -9,13 +9,13 @@ namespace app\Models;
|
||||
*/
|
||||
class ArrayTest {
|
||||
|
||||
/** @var string[] $array_of_string */
|
||||
private $array_of_string;
|
||||
/** @var string[] $arrayOfString */
|
||||
private $arrayOfString;
|
||||
|
||||
/** @var int[][] $array_array_of_integer */
|
||||
private $array_array_of_integer;
|
||||
/** @var int[][] $arrayArrayOfInteger */
|
||||
private $arrayArrayOfInteger;
|
||||
|
||||
/** @var \app\Models\ReadOnlyFirst[][] $array_array_of_model */
|
||||
private $array_array_of_model;
|
||||
/** @var \app\Models\ReadOnlyFirst[][] $arrayArrayOfModel */
|
||||
private $arrayArrayOfModel;
|
||||
|
||||
}
|
||||
|
@ -9,22 +9,22 @@ namespace app\Models;
|
||||
*/
|
||||
class Capitalization {
|
||||
|
||||
/** @var string $small_camel */
|
||||
private $small_camel;
|
||||
/** @var string $smallCamel */
|
||||
private $smallCamel;
|
||||
|
||||
/** @var string $capital_camel */
|
||||
private $capital_camel;
|
||||
/** @var string $capitalCamel */
|
||||
private $capitalCamel;
|
||||
|
||||
/** @var string $small_snake */
|
||||
private $small_snake;
|
||||
/** @var string $smallSnake */
|
||||
private $smallSnake;
|
||||
|
||||
/** @var string $capital_snake */
|
||||
private $capital_snake;
|
||||
/** @var string $capitalSnake */
|
||||
private $capitalSnake;
|
||||
|
||||
/** @var string $sca_eth_flow_points */
|
||||
private $sca_eth_flow_points;
|
||||
/** @var string $sCAETHFlowPoints */
|
||||
private $sCAETHFlowPoints;
|
||||
|
||||
/** @var string $att_name Name of the pet*/
|
||||
private $att_name;
|
||||
/** @var string $aTTNAME Name of the pet*/
|
||||
private $aTTNAME;
|
||||
|
||||
}
|
||||
|
@ -9,8 +9,8 @@ namespace app\Models;
|
||||
*/
|
||||
class Cat {
|
||||
|
||||
/** @var string $class_name */
|
||||
private $class_name;
|
||||
/** @var string $className */
|
||||
private $className;
|
||||
|
||||
/** @var string $color */
|
||||
private $color;
|
||||
|
@ -9,7 +9,7 @@ namespace app\Models;
|
||||
*/
|
||||
class ClassModel {
|
||||
|
||||
/** @var string $_class */
|
||||
private $_class;
|
||||
/** @var string $class */
|
||||
private $class;
|
||||
|
||||
}
|
||||
|
@ -9,8 +9,8 @@ namespace app\Models;
|
||||
*/
|
||||
class Dog {
|
||||
|
||||
/** @var string $class_name */
|
||||
private $class_name;
|
||||
/** @var string $className */
|
||||
private $className;
|
||||
|
||||
/** @var string $color */
|
||||
private $color;
|
||||
|
@ -9,10 +9,10 @@ namespace app\Models;
|
||||
*/
|
||||
class EnumArrays {
|
||||
|
||||
/** @var string $just_symbol */
|
||||
private $just_symbol;
|
||||
/** @var string $justSymbol */
|
||||
private $justSymbol;
|
||||
|
||||
/** @var string[] $array_enum */
|
||||
private $array_enum;
|
||||
/** @var string[] $arrayEnum */
|
||||
private $arrayEnum;
|
||||
|
||||
}
|
||||
|
@ -9,19 +9,19 @@ namespace app\Models;
|
||||
*/
|
||||
class EnumTest {
|
||||
|
||||
/** @var string $enum_string */
|
||||
private $enum_string;
|
||||
/** @var string $enumString */
|
||||
private $enumString;
|
||||
|
||||
/** @var string $enum_string_required */
|
||||
private $enum_string_required;
|
||||
/** @var string $enumStringRequired */
|
||||
private $enumStringRequired;
|
||||
|
||||
/** @var int $enum_integer */
|
||||
private $enum_integer;
|
||||
/** @var int $enumInteger */
|
||||
private $enumInteger;
|
||||
|
||||
/** @var double $enum_number */
|
||||
private $enum_number;
|
||||
/** @var double $enumNumber */
|
||||
private $enumNumber;
|
||||
|
||||
/** @var \app\Models\OuterEnum $outer_enum */
|
||||
private $outer_enum;
|
||||
/** @var \app\Models\OuterEnum $outerEnum */
|
||||
private $outerEnum;
|
||||
|
||||
}
|
||||
|
@ -39,8 +39,8 @@ class FormatTest {
|
||||
/** @var \DateTime $date */
|
||||
private $date;
|
||||
|
||||
/** @var \DateTime $date_time */
|
||||
private $date_time;
|
||||
/** @var \DateTime $dateTime */
|
||||
private $dateTime;
|
||||
|
||||
/** @var string $uuid */
|
||||
private $uuid;
|
||||
|
@ -9,16 +9,16 @@ namespace app\Models;
|
||||
*/
|
||||
class MapTest {
|
||||
|
||||
/** @var map[string,map[string,string]] $map_map_of_string */
|
||||
private $map_map_of_string;
|
||||
/** @var map[string,map[string,string]] $mapMapOfString */
|
||||
private $mapMapOfString;
|
||||
|
||||
/** @var map[string,string] $map_of_enum_string */
|
||||
private $map_of_enum_string;
|
||||
/** @var map[string,string] $mapOfEnumString */
|
||||
private $mapOfEnumString;
|
||||
|
||||
/** @var map[string,bool] $direct_map */
|
||||
private $direct_map;
|
||||
/** @var map[string,bool] $directMap */
|
||||
private $directMap;
|
||||
|
||||
/** @var \app\Models\StringBooleanMap $indirect_map */
|
||||
private $indirect_map;
|
||||
/** @var map[string,bool] $indirectMap */
|
||||
private $indirectMap;
|
||||
|
||||
}
|
||||
|
@ -12,8 +12,8 @@ class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
/** @var string $uuid */
|
||||
private $uuid;
|
||||
|
||||
/** @var \DateTime $date_time */
|
||||
private $date_time;
|
||||
/** @var \DateTime $dateTime */
|
||||
private $dateTime;
|
||||
|
||||
/** @var map[string,\app\Models\Animal] $map */
|
||||
private $map;
|
||||
|
@ -12,13 +12,13 @@ class Name {
|
||||
/** @var int $name */
|
||||
private $name;
|
||||
|
||||
/** @var int $snake_case */
|
||||
private $snake_case;
|
||||
/** @var int $snakeCase */
|
||||
private $snakeCase;
|
||||
|
||||
/** @var string $property */
|
||||
private $property;
|
||||
|
||||
/** @var int $_123_number */
|
||||
private $_123_number;
|
||||
/** @var int $_123number */
|
||||
private $_123number;
|
||||
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ namespace app\Models;
|
||||
*/
|
||||
class NumberOnly {
|
||||
|
||||
/** @var float $just_number */
|
||||
private $just_number;
|
||||
/** @var float $justNumber */
|
||||
private $justNumber;
|
||||
|
||||
}
|
||||
|
@ -12,14 +12,14 @@ class Order {
|
||||
/** @var int $id */
|
||||
private $id;
|
||||
|
||||
/** @var int $pet_id */
|
||||
private $pet_id;
|
||||
/** @var int $petId */
|
||||
private $petId;
|
||||
|
||||
/** @var int $quantity */
|
||||
private $quantity;
|
||||
|
||||
/** @var \DateTime $ship_date */
|
||||
private $ship_date;
|
||||
/** @var \DateTime $shipDate */
|
||||
private $shipDate;
|
||||
|
||||
/** @var string $status Order Status*/
|
||||
private $status;
|
||||
|
@ -9,13 +9,13 @@ namespace app\Models;
|
||||
*/
|
||||
class OuterComposite {
|
||||
|
||||
/** @var float $my_number */
|
||||
private $my_number;
|
||||
/** @var float $myNumber */
|
||||
private $myNumber;
|
||||
|
||||
/** @var string $my_string */
|
||||
private $my_string;
|
||||
/** @var string $myString */
|
||||
private $myString;
|
||||
|
||||
/** @var bool $my_boolean */
|
||||
private $my_boolean;
|
||||
/** @var bool $myBoolean */
|
||||
private $myBoolean;
|
||||
|
||||
}
|
||||
|
@ -18,8 +18,8 @@ class Pet {
|
||||
/** @var string $name */
|
||||
private $name;
|
||||
|
||||
/** @var string[] $photo_urls */
|
||||
private $photo_urls;
|
||||
/** @var string[] $photoUrls */
|
||||
private $photoUrls;
|
||||
|
||||
/** @var \app\Models\Tag[] $tags */
|
||||
private $tags;
|
||||
|
@ -9,7 +9,7 @@ namespace app\Models;
|
||||
*/
|
||||
class SpecialModelName {
|
||||
|
||||
/** @var int $special_property_name */
|
||||
private $special_property_name;
|
||||
/** @var int $specialPropertyName */
|
||||
private $specialPropertyName;
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* TypeHolderDefault
|
||||
*/
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* TypeHolderDefault
|
||||
*/
|
||||
class TypeHolderDefault {
|
||||
|
||||
/** @var string $stringItem */
|
||||
private $stringItem;
|
||||
|
||||
/** @var float $numberItem */
|
||||
private $numberItem;
|
||||
|
||||
/** @var int $integerItem */
|
||||
private $integerItem;
|
||||
|
||||
/** @var bool $boolItem */
|
||||
private $boolItem;
|
||||
|
||||
/** @var int[] $arrayItem */
|
||||
private $arrayItem;
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* TypeHolderExample
|
||||
*/
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* TypeHolderExample
|
||||
*/
|
||||
class TypeHolderExample {
|
||||
|
||||
/** @var string $stringItem */
|
||||
private $stringItem;
|
||||
|
||||
/** @var float $numberItem */
|
||||
private $numberItem;
|
||||
|
||||
/** @var int $integerItem */
|
||||
private $integerItem;
|
||||
|
||||
/** @var bool $boolItem */
|
||||
private $boolItem;
|
||||
|
||||
/** @var int[] $arrayItem */
|
||||
private $arrayItem;
|
||||
|
||||
}
|
@ -15,11 +15,11 @@ class User {
|
||||
/** @var string $username */
|
||||
private $username;
|
||||
|
||||
/** @var string $first_name */
|
||||
private $first_name;
|
||||
/** @var string $firstName */
|
||||
private $firstName;
|
||||
|
||||
/** @var string $last_name */
|
||||
private $last_name;
|
||||
/** @var string $lastName */
|
||||
private $lastName;
|
||||
|
||||
/** @var string $email */
|
||||
private $email;
|
||||
@ -30,7 +30,7 @@ class User {
|
||||
/** @var string $phone */
|
||||
private $phone;
|
||||
|
||||
/** @var int $user_status User Status*/
|
||||
private $user_status;
|
||||
/** @var int $userStatus User Status*/
|
||||
private $userStatus;
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,99 @@
|
||||
<?php
|
||||
/**
|
||||
* XmlItem
|
||||
*/
|
||||
namespace app\Models;
|
||||
|
||||
/**
|
||||
* XmlItem
|
||||
*/
|
||||
class XmlItem {
|
||||
|
||||
/** @var string $attributeString */
|
||||
private $attributeString;
|
||||
|
||||
/** @var float $attributeNumber */
|
||||
private $attributeNumber;
|
||||
|
||||
/** @var int $attributeInteger */
|
||||
private $attributeInteger;
|
||||
|
||||
/** @var bool $attributeBoolean */
|
||||
private $attributeBoolean;
|
||||
|
||||
/** @var int[] $wrappedArray */
|
||||
private $wrappedArray;
|
||||
|
||||
/** @var string $nameString */
|
||||
private $nameString;
|
||||
|
||||
/** @var float $nameNumber */
|
||||
private $nameNumber;
|
||||
|
||||
/** @var int $nameInteger */
|
||||
private $nameInteger;
|
||||
|
||||
/** @var bool $nameBoolean */
|
||||
private $nameBoolean;
|
||||
|
||||
/** @var int[] $nameArray */
|
||||
private $nameArray;
|
||||
|
||||
/** @var int[] $nameWrappedArray */
|
||||
private $nameWrappedArray;
|
||||
|
||||
/** @var string $prefixString */
|
||||
private $prefixString;
|
||||
|
||||
/** @var float $prefixNumber */
|
||||
private $prefixNumber;
|
||||
|
||||
/** @var int $prefixInteger */
|
||||
private $prefixInteger;
|
||||
|
||||
/** @var bool $prefixBoolean */
|
||||
private $prefixBoolean;
|
||||
|
||||
/** @var int[] $prefixArray */
|
||||
private $prefixArray;
|
||||
|
||||
/** @var int[] $prefixWrappedArray */
|
||||
private $prefixWrappedArray;
|
||||
|
||||
/** @var string $namespaceString */
|
||||
private $namespaceString;
|
||||
|
||||
/** @var float $namespaceNumber */
|
||||
private $namespaceNumber;
|
||||
|
||||
/** @var int $namespaceInteger */
|
||||
private $namespaceInteger;
|
||||
|
||||
/** @var bool $namespaceBoolean */
|
||||
private $namespaceBoolean;
|
||||
|
||||
/** @var int[] $namespaceArray */
|
||||
private $namespaceArray;
|
||||
|
||||
/** @var int[] $namespaceWrappedArray */
|
||||
private $namespaceWrappedArray;
|
||||
|
||||
/** @var string $prefixNsString */
|
||||
private $prefixNsString;
|
||||
|
||||
/** @var float $prefixNsNumber */
|
||||
private $prefixNsNumber;
|
||||
|
||||
/** @var int $prefixNsInteger */
|
||||
private $prefixNsInteger;
|
||||
|
||||
/** @var bool $prefixNsBoolean */
|
||||
private $prefixNsBoolean;
|
||||
|
||||
/** @var int[] $prefixNsArray */
|
||||
private $prefixNsArray;
|
||||
|
||||
/** @var int[] $prefixNsWrappedArray */
|
||||
private $prefixNsWrappedArray;
|
||||
|
||||
}
|
@ -7,13 +7,13 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
* Source files are located at:
|
||||
*
|
||||
* > swagger-codegen/modules/swagger-codegen/src/main/resources/php-laravel/
|
||||
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -44,6 +44,13 @@ Route::post('/v2/fake', 'FakeController@testEndpointParameters');
|
||||
|
||||
*/
|
||||
Route::get('/v2/fake', 'FakeController@testEnumParameters');
|
||||
/**
|
||||
* delete testGroupParameters
|
||||
* Summary: Fake endpoint to test group parameters (optional)
|
||||
* Notes: Fake endpoint to test group parameters (optional)
|
||||
|
||||
*/
|
||||
Route::delete('/v2/fake', 'FakeController@testGroupParameters');
|
||||
/**
|
||||
* put testBodyWithFileSchema
|
||||
* Summary:
|
||||
@ -58,6 +65,13 @@ Route::put('/v2/fake/body-with-file-schema', 'FakeController@testBodyWithFileSch
|
||||
|
||||
*/
|
||||
Route::put('/v2/fake/body-with-query-params', 'FakeController@testBodyWithQueryParams');
|
||||
/**
|
||||
* post createXmlItem
|
||||
* Summary: creates an XmlItem
|
||||
* Notes: this route creates an XmlItem
|
||||
|
||||
*/
|
||||
Route::post('/v2/fake/create_xml_item', 'FakeController@createXmlItem');
|
||||
/**
|
||||
* post testInlineAdditionalProperties
|
||||
* Summary: test inline additionalProperties
|
||||
|
@ -7,13 +7,13 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
* Source files are located at:
|
||||
*
|
||||
* > swagger-codegen/modules/swagger-codegen/src/main/resources/php-laravel/
|
||||
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
|
||||
*/
|
||||
|
||||
|
||||
|
@ -7,13 +7,13 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
* Source files are located at:
|
||||
*
|
||||
* > swagger-codegen/modules/swagger-codegen/src/main/resources/php-laravel/
|
||||
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
|
||||
*/
|
||||
|
||||
|
||||
|
@ -7,13 +7,13 @@
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
* Source files are located at:
|
||||
*
|
||||
* > swagger-codegen/modules/swagger-codegen/src/main/resources/php-laravel/
|
||||
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
|
||||
*/
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user