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
0 answers

Getting Junk characters while trying to download PDF in new tab( AngularJS )

I am getting below characters, when i try to download pdf from one of the micro-service and trying to display in other window. %PDF-1.5 %���� 3 0 obj <>stream x�m�=1����w<�;�V�ި���…
shivadarshan
  • 896
  • 2
  • 15
  • 25
0
votes
1 answer

RestHeart-replicaset - The connection string contains an invalid option 'readPreference=

I have RH 3.6 installed and I try to configure it to work with replicaset but something is wrong because it doesn't work: mongodb://user:password@ip:27017,ip:27017,ip:27017/?readPreference=primary&replicaSet=rsdigital&authSource=userManagement Does…
0
votes
1 answer

Restheart add an new document in an shard collection

I want to add an new document in an mongodb existant collection. But this collection is a shard collection. My shard key is _id. POST http://ip:8080/db/coll {"CODE_LOG":260,"Date": {"$date" : "2015-10-27T18:21:37.55Z" }} I get this error : {"http…
Nicolas
  • 117
  • 1
  • 10
0
votes
1 answer

Using Auth Token with multiple RESTheart Instances

I'm wondering how to achieve using the Auth Token when also having multiple RESTheart instances. Currently we have multiple instances deployed to kubernetes and made them available using an ingress definition. We do not want to make use of a sticky…
0
votes
0 answers

How can I sort a nested restheart data column?

I have a table with several columns which I need to be sorted. I'm using RestHeart Api and this is what I am feeding the column with: { "type": "text", "size": "sm", "id": "labelEstado", "pathToValue": "estados___[key=='status']", …
Eunito
  • 416
  • 5
  • 22
0
votes
1 answer

How can I authenticate Vertx MongoClient to a docker with Mongodb and Restheart? Error code 13

I'm studying the Vertx MongoClient API. I previously installed Restheart from Docker and it's own copy of mongodb, so now I have the default configuration for Restheart and the default configuration of Mongo in docker-compose.yml: …
Ozeta
  • 321
  • 4
  • 18
0
votes
1 answer

How to remove a Json Array from mongodb using restheart call

I am trying to delete a column from every document of the mongodb. i am able to do it using the mongodb command but for the same in the UAT. i cannot use that command as we can access through only by restheart. Can you help with same with…
Jagadeesh
  • 31
  • 5
0
votes
1 answer

RESTHeart and Retrofit POST embedded document with binary data

I am looking to POST embedded document in my collection in MongoDB using RESTHeart by means of Retrofit. This is that this document should be with binary data. If to put json representation of this document it shoule be like this {…
mgs_bravo
  • 3
  • 5
0
votes
1 answer

RESTHeart Bind Error to MongoDB on AmazonAWS

I am trying to assist a customer in getting RESTHeart up and connected to MongoDB that is hosted on AmazonAWS. The startup from the yml file looks like it is connecting to our MongoDB (yellow highlight in attachment) but then it fails with a bind…
sawmkw
  • 15
  • 6
0
votes
1 answer

How can I set the permission access of certain users to certain collection or document in the restheart

In my project when a new user is creating, in the base creates a collection with the name as an user name. How should be correctly set permission section of file security.yml? In instance, creates a new user with name userid in the base…
konsul777
  • 11
  • 5
0
votes
3 answers

How to put an existing record in the MongoDB so that no new document is created?

How to efficiently post a document to MongoDB without checking if it is already in the collection. Currently, in my JAVA code, I am checking for the existence of document first and then if it is not where I post it. It seems this is very slow…
user3243499
  • 2,953
  • 6
  • 33
  • 75
0
votes
1 answer

How to correctly write POST request for a restheart on java

I am using restheart to provide a restful interface to mongodb. Get method is working good, I'm getting data from database in respons. But in this instance I'm trying to implementing POST request to write data in base. I'm running following code but…
konsul777
  • 11
  • 5
0
votes
2 answers

Connect RESTHeart to MongoDB over TLS/SSL

I'm trying to understand this part of RESTHeart documentation, but I can't: https://softinstigate.atlassian.net/wiki/spaces/RH/pages/9207828/Installation+and+Setup#InstallationandSetup-5.1ConnectRESTHearttoMongoDBoverTLS/SSL create the keystore…
konsul777
  • 11
  • 5
0
votes
1 answer

How to get more then one thousand(1000) record from RESHTHEART?

I am using RESTHEART for accessing the service(API) and using NoSQL database mongoDB. So In MongoDb, I have 9000 records. If I am calling through RESTHEART then It is returning maximum only one thousand. So In one hit I am getting less then 10001…
Varun Sharma
  • 4,632
  • 13
  • 49
  • 103
0
votes
0 answers

Restheart consumers in production

Are there any consumers for Restheart in production. We are planning to use it in our company and wanted to understand the performance in production and any issues faced.
RDR
  • 473
  • 4
  • 15