Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
updated endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Elliott Wagner authored and Vincent Elliott Wagner committed Mar 11, 2015
1 parent 2876950 commit d71d8fc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions api/v1/lakes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
* "all" : {
* "href": "/api/v1/lakes/all"
* },
* "allweather" : {
* "href": "/api/v1/lakes/allweather"
* },
* "allmessages" : {
* "href": "/api/v1/lakes/allmessages"
* },
* "_links":{
* "507f1f77bcf86cd799439011": {
* "href": "/api/v1/lakes/507f1f77bcf86cd799439011"
Expand Down Expand Up @@ -65,6 +71,9 @@
out.allweather = {
'href': '/api/v1/lakes/allweather'
};
out.allmessages = {
'href': '/api/v1/lakes/allmessages'
};

res.json(out);
});
Expand Down
2 changes: 1 addition & 1 deletion doc/api_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ define({ "api": [
"examples": [
{
"title": "Success-Response:",
"content": "HTTP/1.1 200 OK\n{\n \"self\": {\n \"href\": \"/api/v1/lakes\"\n },\n \"all\" : {\n \"href\": \"/api/v1/lakes/all\"\n },\n \"_links\":{\n \"507f1f77bcf86cd799439011\": {\n \"href\": \"/api/v1/lakes/507f1f77bcf86cd799439011\"\n }\n }\n}",
"content": "HTTP/1.1 200 OK\n{\n \"self\": {\n \"href\": \"/api/v1/lakes\"\n },\n \"all\" : {\n \"href\": \"/api/v1/lakes/all\"\n },\n \"allweather\" : {\n \"href\": \"/api/v1/lakes/allweather\"\n },\n \"allmessages\" : {\n \"href\": \"/api/v1/lakes/allmessages\"\n },\n \"_links\":{\n \"507f1f77bcf86cd799439011\": {\n \"href\": \"/api/v1/lakes/507f1f77bcf86cd799439011\"\n }\n }\n}",
"type": "json"
}
]
Expand Down
2 changes: 1 addition & 1 deletion doc/api_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@
"examples": [
{
"title": "Success-Response:",
"content": "HTTP/1.1 200 OK\n{\n \"self\": {\n \"href\": \"/api/v1/lakes\"\n },\n \"all\" : {\n \"href\": \"/api/v1/lakes/all\"\n },\n \"_links\":{\n \"507f1f77bcf86cd799439011\": {\n \"href\": \"/api/v1/lakes/507f1f77bcf86cd799439011\"\n }\n }\n}",
"content": "HTTP/1.1 200 OK\n{\n \"self\": {\n \"href\": \"/api/v1/lakes\"\n },\n \"all\" : {\n \"href\": \"/api/v1/lakes/all\"\n },\n \"allweather\" : {\n \"href\": \"/api/v1/lakes/allweather\"\n },\n \"allmessages\" : {\n \"href\": \"/api/v1/lakes/allmessages\"\n },\n \"_links\":{\n \"507f1f77bcf86cd799439011\": {\n \"href\": \"/api/v1/lakes/507f1f77bcf86cd799439011\"\n }\n }\n}",
"type": "json"
}
]
Expand Down
2 changes: 1 addition & 1 deletion doc/api_project.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ define({
"apidoc": "0.2.0",
"generator": {
"name": "apidoc",
"time": "2015-03-11T09:58:57.795Z",
"time": "2015-03-11T10:11:34.952Z",
"url": "http://apidocjs.com",
"version": "0.12.1"
}
Expand Down
2 changes: 1 addition & 1 deletion doc/api_project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"apidoc": "0.2.0",
"generator": {
"name": "apidoc",
"time": "2015-03-11T09:58:57.795Z",
"time": "2015-03-11T10:11:34.952Z",
"url": "http://apidocjs.com",
"version": "0.12.1"
}
Expand Down

0 comments on commit d71d8fc

Please sign in to comment.