RestImage

From HTNG Connectivity Wiki

Jump to: navigation, search

Contents

Image

A reusable type for referencing images


Operations

Attributes

ImageURL
The URL of the image
Width
The width of an image in pixels
Height
the height of an image in pixels
Alt
For user agents that cannot display images, forms, or applets, this attribute specifies alternate text. The language of the alternate text is specified by the lang attribute.
Locale
This attribute is the locale that serves to purpose of the HTML lang attribute. The lang attribute specifies the base language of an element's attribute values and text content. The default value of this attribute is unknown.
Language information specified via the lang attribute may be used by a user agent to control rendering in a variety of ways. Some situations where author-supplied language information may be helpful include:
  • Assisting search engines
  • Assisting speech synthesizers
  • Helping a user agent select glyph variants for high quality typography
  • Helping a user agent choose a set of quotation marks
  • Helping a user agent make decisions about hyphenation, ligatures, and spacing
  • Assisting spell checkers and grammar checkers
Reference [1]
The lang attribute specifies the language of element content and attribute values; whether it is relevant for a given attribute depends on the syntax and semantics of the attribute and the operation involved.
Caption
Text for an optional caption for the image

Example

{
 "imageURL": "http://domain.com/image.png",
 "width": 100,
 "height": 100,
 "alt": "Picture of front entrance.",
 "local": "en-US",
 "caption": "The front entrance of our hotel.",
}

References

(Defined in file OTA_HotelCommonTypes.xsd , or a file it imports)

Personal tools
administrative tools