All Downloads are FREE. Search and download functionalities are using the official Maven repository.

models.dsl.links.DefaultDescriptor_MultipleDescriptorsWDefaultImplicit.rapid Maven / Gradle / Ivy

There is a newer version: 1.4.2
Show newest version
/* 
Scenario: >1 link descriptor defined, one designated as default
The referrer should:
get the default link descriptor if it doesn't specify otherwise, but
*/
rapidModel MultipleDescriptors
	resourceAPI MultipleDescriptors baseURI "http://modelsolv.com"
		objectResource DataType1Object type DataType1
			mediaTypes
				application/xml
			method GET Customer
				request
				response DataType1Object statusCode 200

		objectResource DataType2Object type DataType2
			linkDescriptor DataType2ObjectLink
				dataType2ID

			default linkDescriptor DataType2ObjectLink2
				dataType2ID
				aProperty

	dataModel MultipleDescriptors
		structure DataType1
			dataType1ID : string
			CustomerName : string
			dataType1_reference1 : reference DataType2*

		structure DataType2
			dataType2ID : string
			aProperty : float






© 2015 - 2024 Weber Informatics LLC | Privacy Policy