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

models.dsl.EmbedInheritedProperty.rapid Maven / Gradle / Ivy

There is a newer version: 1.4.2
Show newest version
namespace org

rapidModel bug
	resourceAPI api baseURI "http://api.bug.org"

		objectResource PersonObject bound to type Person
			URI /people/{uuid}
				required templateParam uuid bound to property uuid
				
			referenceEmbed > history
		
			method GET getPerson
				request 
				response PersonObject statusCode 200

		collectionResource AuditEventCollection bound to type AuditEvent
			all properties
			excluding
				person
							
	dataModel model
		simpleType UUID as string

		structure Auditable
			uuid: UUID
			history: reference to AuditEvent*
		
		structure Person extends Auditable
			firstName: string
			lastName: string
		
		structure AuditEvent
			uuid: UUID
			timestamp: dateTime
			person: reference to Person
			^type: AuditEventType
			auditableEntityUuid: UUID
			auditableEntityName: string
			
		enum string AuditEventType
			CREATED: "Created"
			READ: "Read"
			UPDATED: "Updated"
			DELETED: "Deleted"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy