Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Returns JSON about this dat. Example:
- `version` is the dat version from dat's package.json
- `changes` is the latest change sequence number (used for replication)
- `name` is taken from the dat.json name field if present
- `description` is taken from the dat.json description field if present
- `publisher` is taken from the dat.json publisher field if present
- `rows` is the number of rows in the dat tabular store

## GET /api/rows
Expand Down
4 changes: 3 additions & 1 deletion lib/rest-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ RestHandler.prototype.hello = function(req, res) {
"dat": "Hello",
"version": this.dat.version,
"changes": this.dat.storage.change,
"name": this.dat.options.name
"name": this.dat.options.name,
"description": this.dat.options.description,
"publisher": this.dat.options.publisher
}

this.dat.storage.stat(function(err, stat) {
Expand Down