Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
/search/feed

...

Info

Retrieves a specific channel or all channels available to the user if channel_id is not provided. (TODO: UPDATE)Returns a list of documents that should just be nsight-events

Possible Methods

POST PUT DELETE

Arguments 
(TODO: UPDATE)

channel_id(optional)
Channel id to try and return, if not provided returns all channels for current user

Json Object
(TODO: UPDATE)
Arguments

N/A

Json Object
Code Block
{
        "channel_id" : "531733e8b8e08e9d2197b0b0",
        "events" : [],
        "locations" : [],
        "name" : "abc123"
//TODO
}

 

Example 
(TODO: UPDATE)

...

Example
Code Block
curl -b cookies.txt -X POST -d '{"name":"abc123"}'  "http://localhost:8185/channel" > response.txt
curl -b cookies.txt -X PUT-d '{"name":"renamed my channel"}'  "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0search/feed" > response.txt
curl
-b cookies.txt -X PUT-d '{"channel_id":"531733e8b8e08e9d2197b0b0", "name":"renamed my channel"}'  "http://localhost:8185/channel" > response.txt
curl -b cookies.txt -X DELETE -d '{"channel":"531733e8b8e08e9d2197b0b0"}'  "http://localhost:8185/channel" > response.txt
curl -b cookies.txt -X DELETE "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0" > response.txt

...

//TODO fix json in this post 
Example Response
(TODO: UPDATE)
Info
Code Block