Skip to content

Commit

Permalink
tweak wording, add info model image, tweak styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekelly committed Nov 17, 2011
1 parent dde28a6 commit 71ea39c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions hal.css
Expand Up @@ -50,6 +50,7 @@ table {
/* HAL.css */
body {
font-family: sans-serif;
font-size: 20px;
}

h1, h2, h3 {
Expand Down Expand Up @@ -97,6 +98,10 @@ ul {
list-style-type: disc;
}

strong {
font-weight: bold;
}

#wrapper {
margin: 30px;
width: 960px;
Expand All @@ -114,3 +119,7 @@ ul {
background-color: #E3E3E3;
border: 1px solid #999;
}

#examples .gist {
font-size: 14px;
}
3 changes: 2 additions & 1 deletion hal_specification.html
Expand Up @@ -56,8 +56,9 @@ <h2>General Description</h2>
The difference between HTML and HAL is that the former is GUI based and designed to be consumed by people, and the latter is machine-readable and designed to be consumed by automated 'agents'.
</p>
<p>
HAL consists of two reserved elements: <strong>Resource</strong> and <strong>Link</strong>. Any and all elements are legal in a HAL representation provided they do not conflict with HAL's reserved elements.
HAL has two main components: Resources and Links. Resources have their own state, links, and embedded resources (which are resources in their own right). Links map link relations to href values/URIs, in a key/value fashion. Below is an image illustrating this information model:
</p>
<img src="info-model.png" />
<p>
HAL is a media type with which applications are described and controlled via link relations. It encourages the use of link relations to:
</p>
Expand Down
Binary file added info-model.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 71ea39c

Please sign in to comment.