Skip to content

Commit

Permalink
Merge pull request #74 from cookeac/master
Browse files Browse the repository at this point in the history
Removed Link Definition objects, fixed errors
  • Loading branch information
erwinspeybroeck authored Feb 17, 2020
2 parents 6f11543 + b636b3d commit 3085ac0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Release Candidate Messages/icarDeviceResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"type": "string",
"description": "Name given to the device by the farmer."
},
"description": {
"descr": {
"type": "string",
"description": "Description of the device by the farmer."
},
Expand Down
18 changes: 5 additions & 13 deletions Release Candidate Messages/icarResourceCollection.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,25 @@
"first": {
"type": "string",
"format": "uri",
"description": "Link to the first page of the collection."
"description": "Link to the first page of the collection. Link relation: first."
},
"next": {
"type": "string",
"format": "uri",
"description": "Link to the next page of the collection, if any."
"description": "Link to the next page of the collection, if any. Link relation: next."
},
"prev": {
"type": "string",
"format": "uri",
"description": "Link to the previous page of the collection, if any."
"description": "Link to the previous page of the collection, if any. Link relation: prev."
},
"last": {
"type": "string",
"format": "uri",
"description": "Link to the last page of the collection, if any."
"description": "Link to the last page of the collection, if any. Link relation: last."
}
}
}
},

"links": [
{ "rel": "first", "href": "{firsturi}", "templateRequired": ["firsturi"], "templatePointers": {"firsturi": "/view/first" }},
{ "rel": "next", "href": "{nexturi}", "templateRequired": ["nexturi"], "templatePointers": {"nexturi": "/view/next" }},
{ "rel": "prev", "href": "{prevuri}", "templateRequired": ["prevuri"], "templatePointers": {"prevuri": "/view/prev" }},
{ "rel": "last", "href": "{lasturi}", "templateRequired": ["lasturi"], "templatePointers": {"lasturi": "/view/last" }}
]

}

}
11 changes: 2 additions & 9 deletions Release Candidate Messages/icarResourceReferenceType.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,5 @@
"description": "Specifies whether this is a single resource Link or a Collection.",
"enum": ["Link"]
}
},
"links": [
{
"rel": "related",
"href": "{@id}",
"templateRequired": ["@id"]
}
]
}
}
}

0 comments on commit 3085ac0

Please sign in to comment.