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
5
votes
2 answers

Converting 'curl -F' to Python requests

I'm trying to do a multi-part form upload with "requests" in python. I can upload the file, but it never loads the additional fields that are typically passed through the -F flag with curl. The curl command I'm trying to mimic: curl -v -u…
Gary Leong
  • 199
  • 1
  • 2
  • 12
2
votes
2 answers

Can't use curl inside a docker container that has installed it before

I'm using RestHeart docker image. From it's dockerfile: FROM openjdk:8u111-jre-alpine RUN apk upgrade --update && apk add --update libstdc++ curl ca-certificates bash ... This means that curl is currently installed, right? I run that image inside…
italktothewind
  • 1,950
  • 2
  • 28
  • 55
2
votes
1 answer

ember.js RestAdapter How to define ajaxoptions

I customized RESTAdapter to connect to a RestHeart server (a RestFull web gateway server for mongodb): import DS from 'ember-data'; export default DS.RESTAdapter.extend({ host:'http://127.0.0.1:8080', namespace: 'boards' }); I created a…
jcheron
  • 193
  • 1
  • 9
2
votes
1 answer

How to add the "No-Auth-Challenge" request header to avoid the browser to prompt you for credentials with the awful popup login window in restAngular

I am frequently getting awful popup login window in our website. I am using AngularJs with RestAngular for login. I want to implement below solution: As per the Rest-Heart documents. RestAngular Documentation Restangular is then configured to: to…
shivadarshan
  • 896
  • 2
  • 15
  • 25
2
votes
1 answer

How can I use limit() in RESTHeart API?

In Mongo shell I use: db.org_all.find({$text:{$search:"school"}}).limit(1000) How to use .limit() in RESTHeart API? /publicdb/org_all?find={$text:{$search:"school"}}&limit=10 doesn’t work.
2
votes
2 answers

should I authenticate with every call to RESTHeart?

I want to write a messenger app on Swift, iOS and as a database I chose MongoDB and turned ON authentication on it. And for the bridge I chose RESTHeart(GitHub). But for input something to database from RESTHeart I use the next line: http PUT…
Orkhan Alizade
  • 7,379
  • 14
  • 40
  • 79
1
vote
1 answer

Restheart for MongoDB, ACL and users

I have a MongoDB instance with the atlas sample databases and I'm trying to configure Restheart on it. I have restheart configured with mongoRealmAuthenticator and MongoAclAuthorizer, with ACL and USERS collections in the restheart database, and the…
Andrewzz
  • 13
  • 3
1
vote
1 answer

dio put operation not working in fllutter

Im trying to connect flutter web app with mongodb using restheart api. PUT operation is required for creating new collection in mongoDB. I checked request in Postman, its works fine. I can get data from already existing collection (GET, POST works…
salih kallai
  • 879
  • 2
  • 13
  • 34
1
vote
2 answers

Rest heart without authentication

I'm using Rest Heart and I want to: 1) Disable authentication of Rest Heart. I don't want to provide any credential like admin:changeit when doing crud operations. 2) Disable authentication of Rest Heart with Mongo because my Mongo doesn't have…
italktothewind
  • 1,950
  • 2
  • 28
  • 55
1
vote
3 answers

why I can't post from local angular app to RestHeart local test api runing on docker?

I'm new to angular and got this situation in one of my classes: I have a simple Angular app running on my localhost:4200, from witch i want to make a post to a RESTHEART local API. As i got from the RESTHEART tutorial…
Daniel Costa
  • 137
  • 2
  • 10
1
vote
2 answers

wso2 Transform XML to Json inside sequence

I receive from an rabbitmq inbound an XML message and I have to send it to mongodb with restheart. I must modify the content of the Json generate by the formatter before sending it to the mongo rest api, because I must modify a datetime format send…
Nicolas
  • 117
  • 1
  • 10
1
vote
1 answer

Case insensitive - "SyntaxError: Invalid regular expression"

I'm building an Angular webpage with top menu with a search input giving me some issues... I'm using RESTHeart API in order to build the query for it. In the query sent to the API I'm sending the following: [a-zA-Z0-9.@-]{4,99} This pattern should…
Eunito
  • 416
  • 5
  • 22
1
vote
1 answer

Query documents (text search) in Restheart

I created a collection and indexed the field as "text" in mondo shell. Then I query documents with the following parameters: localhost:8080/db/tags?filter={"$text":{"$search":"some text"}} and get error: http status code 500 http status description…
Dzmitry
  • 87
  • 1
  • 1
  • 7
1
vote
2 answers

Nginx proxy configuration in front of Restheart

I am running nginx as a front end reverse-proxy, in a docker (swarm, single node) container, in front of a Restheart application, delivering restheart REST services. I am using the latest docker image for ngninx on Alpine. The configuration file is…
user56804
  • 13
  • 2
1
vote
1 answer

Getting all pages data from restheart API

We know that RESTHEART API for Mongo provides facility to get data by pages and the maximum limit of pages is 1000. Is there a way in Restheart or outside to get all pages data in single call? I am just trying to avoid multiple rest calls using…
athenatechie
  • 699
  • 2
  • 8
  • 15
1
2 3 4 5 6 7 8