models.autoRealization.Tests.M2.Reuse.Reuse_SingleAndMultiValuedRoots.rapid Maven / Gradle / Ivy
import TaxBlasterData.Model from "../../../models/TaxBlasterDataModel.rapid" as data
rapidModel TaxBlaster
resourceAPI TaxBlasterAPI baseURI "http://taxblaster.com/api"
with autoRealizations
"./Reuse_SingleAndMultiValuedRoots.yaml"
/** testing */
collectionResource PersonCollection type Person
URI /people
mediaTypes
application/json
method GET getPeople
request
response with this PersonCollection statusCode 200
method POST postPerson
request with type Person
response with type Person statusCode 200
response statusCode 400
collectionResource AccountantClients type Person
URI /accountant/{accountantID}/clients
required templateParam accountantID type string
method GET getClients
request
response with this AccountantClients statusCode 200
method POST postAccountantClients
request with type Person
response with type Person statusCode 200
response statusCode 400
objectResource PersonObject type Person
URI /people/{id}
mediaTypes
application/json
method GET getPersonObject
request
response with type Person statusCode 200