Questions tagged [restheart]

RESTHeart is a RESTful gateway for access to MongoDB.

RESTHeart connects to MongoDB and opens data to the Web via a simple RESTful API.

The json based API supports CRUD and data model operations, Basic or JWT authentication, role-based authorization and CORS.

RESTHeart can be extended with custom security implementations, request transformers, checkers and hooks.

108 questions
0
votes
1 answer

RESTHeart Distinct Query Filter for MongoDB

Hi , Can anyone help me how to get Unique column data using RESTHeart filter query's from MongoDB. ## **
Laxman
  • 31
  • 2
0
votes
1 answer

How to execute a findAndModify in Restheart?

I'm running some tests with Restheart, but can't find how to execute a findAndModify in it via curl or httpie. Has anyone done that?
0
votes
1 answer

How to authenticate a client's login information through MongoDB & Restheart

I am working on the RestAPI for my capstone project, however I am stuck at a particular part. I have to have the back end server (mongoDB) authenticate the client's login information (email / password) whether if they inputted the correct…
Br4ndonlu
  • 11
  • 1
0
votes
3 answers

REST - How to use auth token in subsequent requests

I'm using a java application the provide a REST interface for mongodb database called "RESTHeart" When I make a normal GET request. http -a admin:temp http://172.18.18.122:8080/_logic/roles/admin I get an auth token Auth-Token:…
Deano
  • 11,582
  • 18
  • 69
  • 119
0
votes
1 answer

restheart - connections not closed

Is there a way to set a timeout on connection from restheart to mongodb? Looking on the server it seems there is a large number of connections that stay open for an extended period of time. We are using restheart 1.1 and mongodb 3.2. I noticed…
0
votes
1 answer

RESTHeart database create

I am using RESTHeart to access a Mongo database. RESTHeart has a an API that is supposed to create a database, e.g.: curl -X put http://localhost:8080/db1 Well, I was using a chrome browser-based REST client that happened to do the equivalent of…
kaby76
  • 1,142
  • 1
  • 7
  • 10
0
votes
1 answer

RESTHeart PATCH not updating the document

I am trying to update a key in the MongoDB document using RESTHear api but the value is not getting updated, however, I am getting 200 OK. I tried PATCH and PUT both. Below are the URIs I tried. http PUT…
Jardanian
  • 711
  • 1
  • 6
  • 11
0
votes
1 answer

How to get rid of extra json keys from MongoDB result

I have just started using MongoDB and RESTHeart api server. I wish to replace my existing DB with MongoDB and existing DB too receives a json from the rest api, I thought the change would be little. So, below is the issue: When I query MongoDB, this…
Jardanian
  • 711
  • 1
  • 6
  • 11
0
votes
1 answer

OpenShift and Restheart

I have to use Restheart APIs in an OpenShift application. I tried to execute restheart.jar as suggested in the installation and use guide, but it produced an error, due to the difference between the installed java version (openjdk 7) and the…
PieCot
  • 3,564
  • 1
  • 12
  • 20
0
votes
1 answer

RestHeart with mongoDB

After asked this question : topic restHeart with a satisfactory answer, i have a new question. I used this http restHeart request : PATCH http://test:8081/purge/test3 { rts: [ { "name": "addRequestProperties", "phase": "REQUEST", "scope":…
don
  • 51
  • 1
  • 4
0
votes
3 answers

how to insert data on mongo db through restheart api

i am using mongo DB 3.0 version and restheart API 2.0 version. now i am trying to check my queries (URI) through postman chrome interface. and i create a database(test) table(mycol) and two documents in mongo DB, when i filter that data it shows…
Shiva Kumar
  • 85
  • 1
  • 10
0
votes
1 answer

Restheart mongodb filtering by date

I'm currently trying to get some json data from mongoDB database, and I use restHeart plugin for make my query. I need to filter my answer with all result that the property "_lastupdated_on" is lower than the current date. I tried something like…
don
  • 51
  • 1
  • 4
0
votes
1 answer

Using Java (HttpURLConnection) to authenticate to Restheart (for Mongodb)

I am using restheart to provide a restful interface to mongodb. The interface is set up and running and provides the correct answer if a GET request is sent through Chrome. However if I use the following java code using a HttpURLConnection I get a…
Andy Cobley
  • 316
  • 1
  • 5
0
votes
2 answers

Restheart: mongodb thgourh http get returns 404

I have managed to access a static url but when it comes to accessing an existing collection in mongodb (2.6) through a browser (e.g., http://0.0.0.0:8080/test/test) it returns a 404. Anybody knows if I have to add anything to the default…
0
votes
2 answers

How can I securely connect to RESTHeart with a Token

I have use RESTHeart and HTTPie to connection to my MongoDB with the next line: http PUT 127.0.0.1:8080/myfirstdb desc='this is my first db created with restheart' -a username:password but I think that it is not secure to use my RESTHeart username…
user4809833