-
-
Notifications
You must be signed in to change notification settings - Fork 375
Closed
Description
Hi!
I`m used RC5.
If set first method MVCSwagResponses isArray=true then all methods next following him also return array, even if they set isArray=false.
And otherwise if first method MVCSwagResponses isArray=false then all next methods also return not array.
Example:
[MVCPath('/profiles')]
[MVCSwagSummary('Profile', 'List all profiles', 'getProfiles')]
[MVCSwagResponses(200, 'Success', TProfile, True)]
[MVCSwagResponses(500, 'Internal Server Error')]
[MVCHTTPMethod([httpGET])]
procedure GetProfiles;
[MVCPath('/profiles/($uid)/activation')]
[MVCHTTPMethod([httpPOST])]
[MVCSwagParam(plPath, 'uid', 'profile id', ptInteger)]
[MVCSwagResponses(200, 'Success', TProfile)]
[MVCSwagResponses(500, 'Internal Server Error')]
[MVCSwagSummary('Profile', 'activate profile from device', 'activateProfiles')]
procedure Activation(uid: String);
[MVCPath('/profiles')]
[MVCSwagParam(plBody, 'entity', 'Profile object', TProfile)]
[MVCSwagSummary('Profile', 'Create or update profile', 'createProfile')]
[MVCSwagResponses(201, 'Success', TProfile)]
[MVCSwagResponses(500, 'Internal Server Error')]
[MVCHTTPMethod([httpPOST])]
procedure CreateProfile();
Metadata
Metadata
Assignees
Labels
No labels