Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Database Commands

kchodorow edited this page Sep 14, 2010 · 2 revisions

Usage

http://localhost:27080/dbname/_cmd

Description

Runs a database command.

Request Type

POST

Required Arguments

  • cmd=cmd_obj (object)

Return Values

Returns the database response.

Example

Drop the ‘bar’ collection in the ‘foo’ database:

$ curl --data 'cmd={"drop" : "bar"}' 'http://localhost:27080/foo/_cmd'
Clone this wiki locally