Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

So you are able to use type which you need. Each of these tags has different attributes (more info here) but they have several one in common. It's 'name' and 'description'. 'name' value is used to generate field with specified name in the class which represents the response/request. 'description' value is needed for you and others to understand why this tag was created and also for swagger. Also you need specifiy 'name' as an attribute of the <class> tag. The representing class will have the specified name. 

IMPORTANT: your name for a class must be in CamelCase and end with 'Request'/'Response'.

Example


Code Block
languagexml
titleresponserequest.xml
collapsetrue
<class name="FirmInformationRequest" xmlns="http://www.knubisoft.com/api/schema/class" >
	<string name="firmName" description="Firm name"/>
	<string name="country" description="Country"/>
	<string name="state" description="State"/>
	<string name="city" description="City "/>
	<string name="firstAddress" description="First address"/>
	<string name="secondAddress" description="Second address"/>
	<integer name="postCode" description="Post code"/>
	<localdate name="establishDate" description="The date of establishing"/>
</class>

...