Rest API

5 views
Skip to first unread message

mcomella

unread,
Apr 11, 2013, 5:10:44 PM4/11/13
to cs132-m...@googlegroups.com
As we've been talking about, I'm changing the REST API pretty hardcore. It's not quite so RESTful anyway, but it maps closer to mongo JS commands than than a RESTful interface would (some commands will not map well at all).

The basic scheme is like so:

mws/:session_id/db/:collection/find
mws/:session_id/db/:collection/insert
mws/:session_id/cursor/:id/sort

where mws is short for mongo web shell.

I'll ping you when I have the doc finished.

We should check if this scheme is okay with 10gen before changing all of our code, particularly because it's not so restful, so hopefully we'll have a response for tomorrow.

Sorry in advance.
- Mike

mcomella

unread,
Apr 11, 2013, 5:22:47 PM4/11/13
to cs132-m...@googlegroups.com
I forgot to mention:

I'm trying to get the URIs to follow the JS method calls as closely as possible.
- Mike

mcomella

unread,
Apr 11, 2013, 10:11:38 PM4/11/13
to cs132-m...@googlegroups.com
The updated API is in a new pull request: https://github.com/10gen/mongo-web-shell/pull/26

Please take a look and comment if you have suggestions.

Update your code accordingly.
- Mike
Reply all
Reply to author
Forward
0 new messages