models.dsl.TaxFiling_multipleUriParam.rapid Maven / Gradle / Ivy
/*
This is a Zen Model template. Customize it to reflect your services
and data types.
*/
rapidModel TaxFiling_multipleUriParam
resourceAPI MyInterfaceName baseURI "http://my-namespace.com"
objectResource TaxFilingObject type myDataModel.TaxFiling
URI taxFiling/{taxyear}/{jurisdiction}/{id}
required templateParam taxyear property taxYear
required templateParam jurisdiction property jurisdition
required templateParam id property filingID
referenceLink > taxPayer
targetResource TaxPayerObject
linkDescriptor TaxPayerObject.TaxPayerObjectLink
mediaTypes
application/xml
method GET getTaxFilingObject
response TaxFilingObject statusCode 200
response statusCode 404
objectResource TaxPayerObject type myDataModel.TaxPayer
URI taxpayer/{id}
required templateParam id property taxId
linkDescriptor TaxPayerObjectLink
taxId
lastName
mediaTypes
application/xml
method GET getTaxPayerObject
response TaxPayerObject statusCode 200
response statusCode 404
dataModel myDataModel
structure TaxFiling
/** Unique ID for this tax filing */
filingID : string
person : reference Person
taxPayer : reference TaxPayer
taxYear : gYear
jurisdition : string
taxableIncome : decimal // default: exactly 1 occurrence
paymentMethods : string + // +
filedTimestamp : dateTime // *
dependents : reference Person * // *
structure Person
structure TaxPayer
taxId : string
firstName : string
lastName : string