Aggregation API

68 views
Skip to first unread message

Brian Cunningham

unread,
May 15, 2015, 11:24:56 AM5/15/15
to learnin...@googlegroups.com
I've set up a Learning Locker instance that is running ok and can accept statements. I'm curious to investigate the aggregation capabilities of Learning Locker and was hoping to experiment with the Aggregation API (http://docs.learninglocker.net/statements_api/) and the MongoAggregationPipeline in particular. Using http://myhostedlearninglocker/statements/aggregate url call, I'm getting the following response:
{
"error": true,
"success": false,
"message": "",
"code": 404,
"trace": "`debug` must be `true` in the App's config to get a trace."
}

dxc

Ryan Smith

unread,
May 18, 2015, 5:25:56 PM5/18/15
to learnin...@googlegroups.com
Hi Brian, thanks for your message.

I think your endpoint is incorrect unfortunately. Try changing it to "http://myhostedlearninglocker/api/v1/statements/aggregate" or "http://myhostedlearninglocker/public/api/v1/statements/aggregate". I hope that helps.

Thanks,
Ryan

Brian Cunningham

unread,
May 20, 2015, 5:35:03 AM5/20/15
to learnin...@googlegroups.com
Thanks Ryan, 

That worked, a stupid mistake. 


Brian

Ryan Smith

unread,
May 20, 2015, 6:12:24 AM5/20/15
to learnin...@googlegroups.com
You're very welcome Brian. No problem.
Reply all
Reply to author
Forward
0 new messages