1.2.5 • Published 10 years ago

amid v1.2.5

Weekly downloads
53
License
-
Repository
github
Last release
10 years ago

Name

AMID - Another.js Mongo Internet Driver

Description

Node.js REST interface for MongoDB, we modified mongodb-rest (https://github.com/tdegrunt/mongodb-rest) to manage more operation:

  • counting elements
  • "distinct" operations
  • excel/csv export
  • list of available db collection
  • list of keys of a specific query
  • Multithreading support

It's now also possible to search by date range and are managed sort operations.

Installation

Installation is now via npm: npm install amid. After that you can just issue amid-rest on the command line and the server should start.

Notes

Supported REST requests:

  • GET /db/collection - Returns all documents
  • GET /db/collection?query=%7B%22isDone%22%3A%20false%7D - Returns all documents satisfying query
  • GET /db/collection?query=%7B%22isDone%22%3A%20false%7D&limit=2&skip=2 - Ability to add options to query (limit, skip, etc)
  • GET /db/collection/id - Returns document with id
  • GET db - List all collection/document
  • GET /db/collection/?operation=key - List all key of collection
  • GET /db/collection/?operation=excel&query=%7B%22isDone%22%3A%20false%7D - export query in excel
  • GET /db/collection/?sort=[{"property":null,"direction":"ASC"}] - Returns all document soted by ASC
  • GET /db/collection?query=%7B%22isDone%22%3A%20false%7D&operation=count - Count elements
  • GET /db/collection?operation=distinct&fields=Market&sort=[{"property":null,"direction":"ASC"}] - Distinct and sort operation
  • POST /db/collection - Insert new document in collection (document in POST body)
  • PUT /db/collection/id - Update document with id (updated document in PUT body)
  • DELETE /db/collection/id - Delete document with id

Content Type:

  • Please make sure application/json is used as Content-Type when using POST/PUT with request body's.

Dependencies:

  • Are all indicated in package.json.

Credits

Authors

  • Mariano Fiorentino
  • Andrea Negro
1.2.5

10 years ago

1.2.3

10 years ago

1.2.2

10 years ago

1.2.0

10 years ago

1.0.5

12 years ago

1.0.4

12 years ago

1.0.3

12 years ago

1.0.2

12 years ago

1.0.1

12 years ago

1.0.0

12 years ago