Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pixelhandler/clean-or-dirty
mobile web app, keep track of dishwasher status using location
https://github.com/pixelhandler/clean-or-dirty
Last synced: 8 days ago
JSON representation
mobile web app, keep track of dishwasher status using location
- Host: GitHub
- URL: https://github.com/pixelhandler/clean-or-dirty
- Owner: pixelhandler
- Created: 2013-01-03T16:26:22.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-20T11:16:18.000Z (almost 12 years ago)
- Last Synced: 2024-10-30T12:25:38.613Z (about 2 months ago)
- Language: JavaScript
- Size: 500 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clean-or-dirty.com
Mobile web app, keep track of dishwasher status using location.
## Directories
* `app` source files
* `dist` build for production
* `api` deployd source
* `test` unit tests## API
### Appliances Collection
#### [GET]
##### Existing location
**Request**
/appliances?{"ref": "9e30ef6c90ffc7c5e650e63eb078174b"}
**Response**
[
{
"created": "Sun Jan 06 2013 08:40:08 GMT+0000 (UTC)",
"id": "ffbf4189d3ba6bee",
"name": "1431",
"ref": "9e30ef6c90ffc7c5e650e63eb078174b",
"state": "Dirty",
"updated": "Sun Jan 06 2013 08:40:49 GMT+0000 (UTC)"
}
]##### New location
**Request**
/appliances?{"ref": "9e30ef6c90ffc7c5e650e63eb078174b"}
**Response**
[]
#### [POST]
##### New location
**Request**
/appliances
Body
{"ref":"9e30ef6c90ffc7c5e650e63eb078174b","state":"Clean"}
**Response**
{
"created": "Sat Jan 12 2013 21:24:50 GMT+0000 (UTC)",
"id": "2c3c2a82207b984e",
"ref": "9e30ef6c90ffc7c5e650e63eb078174b",
"state": "Clean",
"updated": "Sat Jan 12 2013 21:24:50 GMT+0000 (UTC)"
}#### [PUT]
##### Existing location
Update as *Clean* appliance.
**Request**
/appliances/ffbf4189d3ba6bee
Body
{
"created": "Sun Jan 06 2013 08:40:08 GMT+0000 (UTC)",
"id": "ffbf4189d3ba6bee",
"name": "1431",
"ref": "9e30ef6c90ffc7c5e650e63eb078174b",
"state": "Clean",
"updated": "Sun Jan 06 2013 08:40:49 GMT+0000 (UTC)"
}**Response**
{
"id": "ffbf4189d3ba6bee",
"name": "1431",
"ref": "9e30ef6c90ffc7c5e650e63eb078174b",
"state": "Clean",
"updated": "Sat Jan 12 2013 21:19:33 GMT+0000 (UTC)"
}Update as *Dirty* appliance.
**Request**
/appliances/2c3c2a82207b984e
Body
{
"created": "Sat Jan 12 2013 21:24:50 GMT+0000 (UTC)",
"id": "2c3c2a82207b984e",
"name": "1431",
"ref": "9e30ef6c90ffc7c5e650e63eb078174b",
"state": "Dirty",
"updated": "Sat Jan 12 2013 21:24:50 GMT+0000 (UTC)"
}**Response**
{
"id": "2c3c2a82207b984e",
"name": "1431",
"ref": "9e30ef6c90ffc7c5e650e63eb078174b",
"state": "Dirty",
"updated": "Sat Jan 12 2013 21:29:51 GMT+0000 (UTC)"
}