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

Custom rsponse in Restheart for empty responses

Let's say that my filter condition results in empty resultset. My _embedded array is empty. Now I want to add a custom response instead of empty response. When I used a custom response transformer, I am not able to add a custom response. I am able…
RDR
  • 473
  • 4
  • 15
0
votes
2 answers

restheart empty response when adding

Restheart returns an empty response for a document addition (with PUT or POST methods). is it possible to modify the configuration so that it returns a valid json response: Like {} for example ? is there a way that restheart returns the id or…
jcheron
  • 193
  • 1
  • 9
0
votes
1 answer

How to update single object with RESTHeart patch?

I am using RESTHeart and MongoDB. I have multiple JSON objects and I want to update a particular object at a time with a REST call. I am following https://softinstigate.atlassian.net/wiki/spaces/RH/pages/9207882/Reference+sheet , But I am not able…
Varun Sharma
  • 4,632
  • 13
  • 49
  • 103
0
votes
1 answer

Restheart how to delete an aggregration

I have a number of aggregations defined in my mongodb instance and I would like to delete one of them. So for example if I had 3 defined in the collections _properties metadata and I wanted to get rid of the second one how would I do it.
IanBram
  • 257
  • 1
  • 3
  • 10
0
votes
0 answers

Get more than 1000 row in the data-table in Angular-JS from MongoDB?

I am implementing data-table and using MongoDb, Angular-Js. Data-table displaying max to max 1000 row. If API has 999 records then displaying 999 row, If API has 1001 then only displaying 1000 row. If API has 2000 Then also it is displaying 1000.…
Varun Sharma
  • 4,632
  • 13
  • 49
  • 103
0
votes
1 answer

Status 500 Internal Server Error in IE-11 with Angular Js Application

I am implementing single page application(SPA) using of Angular Js, MongoDb. And I am using rest call with promises. Rest call working fine in Chrome, Mozila browser which is using for development. But rest call is not working in IE-11. It is giving…
Varun Sharma
  • 4,632
  • 13
  • 49
  • 103
0
votes
1 answer

RESTHeart Hooks - not wokring

I've added my custom code as follows public class StatusUpdateHook implements Hook { private static final Logger LOGGER = LoggerFactory.getLogger(StatusUpdateHook.class); @Override public boolean hook(HttpServerExchange exchange,…
0
votes
1 answer

Can RESTHeart be run on Tomcat? In my company Undertow is not an approved product

Can RESTHeart be run on Tomcat? In my company Undertow is not an approved product.
0
votes
1 answer

How to fix 400 Bad Request with empty filter query in RestHeart?

I am using Restheart and MongoDB. And I am calling one service(API) for the response data. Working API http://127.0.0.1:8080/test/donor?filter="{'name':'john'}" When I calling above API then it is working, But When I putted API filter is empty,…
Varun Sharma
  • 4,632
  • 13
  • 49
  • 103
0
votes
0 answers

RestHeart Date filter doesn't use index

I have configured RestHeart to get data from MongoDB. Requests that involve String, Object, Number work well and return the same results than if I use a client to query the MongoDB (RoboMongo, MongoDB Compass...). However requests that involved Date…
0
votes
1 answer

How to get only the value from int64 type with MongoDB

I use RestHeart to get data from MongoDB. When I request a document from a collection that contains a field of type int64 (in this example "INT64_NUMBER") the response contains: "FLAG_A": "Y", "FLAG_B": "N", "INT64_NUMBER" { "$numberLong":…
0
votes
1 answer

Querying MongoDB with RestHeart returns different result than with MongoDB client

I have configured RestHeart to get data from MongoDB. Most of the request work well and return the same results than if I use a client to query the MongoDB (RoboMongo, MongoDB Compass...). However some request like the following that involved…
0
votes
1 answer

POST method for RestHeart API

We know that RESTHEART API can provide data using GET method. But if the list of paramaters grows then GET Rest call will hit the limit. Please confirm if we can use POST calls to fetch data via rest heart. something like GET…
athenatechie
  • 699
  • 2
  • 8
  • 15
0
votes
1 answer

RESTHEART throwing exceptions

we implemented RESTHEART to get aggregated data from MongoDB. For single requests , the data is coming up fine and meets the requirement. When we started checking this under JMeter requests by adding load on MongoDB we got exceptions at backend. We…
athenatechie
  • 699
  • 2
  • 8
  • 15
0
votes
1 answer

What are the recommended settings for the jvm memory of RestHeart?

In the documentation, it does not specify the memory needed for the JVM, in the post on the performance either.