{"id":26355903,"url":"https://github.com/kshirish/mongrest","last_synced_at":"2025-07-13T04:33:20.714Z","repository":{"id":36410915,"uuid":"40715857","full_name":"kshirish/mongrest","owner":"kshirish","description":"HTTP rest interface to play with mongodb","archived":false,"fork":false,"pushed_at":"2022-12-07T10:31:46.000Z","size":60,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-03-15T22:03:39.042Z","etag":null,"topics":["http","mongodb","rest"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kshirish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-14T13:17:24.000Z","updated_at":"2023-03-09T00:20:39.000Z","dependencies_parsed_at":"2023-01-17T01:14:11.828Z","dependency_job_id":null,"html_url":"https://github.com/kshirish/mongrest","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshirish%2Fmongrest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshirish%2Fmongrest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshirish%2Fmongrest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshirish%2Fmongrest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kshirish","download_url":"https://codeload.github.com/kshirish/mongrest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871889,"owners_count":20361380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","mongodb","rest"],"created_at":"2025-03-16T13:18:24.448Z","updated_at":"2025-03-16T13:18:24.962Z","avatar_url":"https://github.com/kshirish.png","language":"JavaScript","readme":"# Mongrest \n_**Mongrest**_ provides an HTTP interface for your mongodb.\n\n## How to use\n* ```npm install -g mrest```\n* ```mrest --port=\u003cport-number\u003e --url=\u003cdatabase-url\u003e```\n\n## Supported RESTful urls\n\n### CRUD\n* GET /users - Retrieves a list of users\n* GET /users/12 - Retrieves a user with #12\n* POST /users/add - Creates a new user\n* PUT /users/12 - Updates user #12\n* DELETE /users/12 - Deletes user #12\n\n### Filter\n* GET /tickets?state=open - Retrieves tickets with state open\n\n### Sort\n* GET /users?sort=-priority - Retrieves a list of users in descending order of priority\n\n### Limit fields\n* /users?fields=-id,username,first_name\n\n### Limit results\n* GET /users?limit=10 - Retrives only top 10 results\n\n### Combined\n* GET /users?limit=10\u0026fields=-id,fullname,username\u0026sort=-username\n\n### Misc\n* GET /stats - stats for the current database\n* GET /list - lists collections in the current database\n* POST /test/new - create a new collection 'test'\n* DELETE /test - delete 'test' collection\n\n### Query to mongo\n* POST /users/filter\n  ```name=john\u0026age\u003e21\u0026fields=name,age\u0026sort=name,-age\u0026offset=10\u0026limit=10```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshirish%2Fmongrest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkshirish%2Fmongrest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshirish%2Fmongrest/lists"}