search handler: documented the "attr" values when searching for a permanode

Change-Id: I607d1fe016078912faac9864630552cd2b496aa2
This commit is contained in:
mpl 2012-10-24 17:26:46 +02:00
parent 202c45a04a
commit 3e9aef409c
1 changed files with 4 additions and 1 deletions

View File

@ -166,7 +166,10 @@ func (sh *Handler) serveRecentPermanodes(rw http.ResponseWriter, req *http.Reque
dr.PopulateJSON(ret)
}
// TODO(mpl): configure and/or document the name of the possible attributes in the http request
// servePermanodesWithAttr uses the indexer to search for the permanodes matching
// the request.
// The valid values for the "attr" key in the request (i.e the only attributes
// for a permanode which are actually indexed as such) are "tag" and "title".
func (sh *Handler) servePermanodesWithAttr(rw http.ResponseWriter, req *http.Request) {
ret := jsonMap()
defer httputil.ReturnJSON(rw, ret)