Skip to main content

CotomyEntityApiForm

API form that supports entity key routing and HTTP method inference.

Properties

PropertyTypeDescription
entityKey`stringundefined`
actionUrlstringAction URL adjusted with the entity key.

Methods

MethodDescription
submitAsync()Inherited; submits to API.

Protected Members (for subclassing)

MemberDescription
requiresEntityKeyWhether the entity key is required.
hasEntityKeytrue if an entity key is present.
setEntityKey(response)Extracts and stores the entity key from Location header.
submitToApiAsync(formData)Submits and stores entity key on creation.