Try RESTHeart Online
A Simple Web Application
This is a very simple Web Application hosted at StackBlitz. It shows a table of the message documents stored in a MongoDB collection and provides a simple form to create a new message document.
Editor button and open the code of
service.ts. You’ll see how is easy interacting with the RESTHeart API!
Try the API online
You can use the online demo service so you can play with API without the need to install MongoDB and RESTHeart.
The online demo API exposes one single collection at
https://beta.mrest.io/demo/messages without requiring authentication.
mrest.io is the managed service for RESTHeart, currently on beta. It requires an api key, passed via request header
Insert or update the document with _id docid
Get the created document
Create a second document with
If the _id is not specified in the request body, it will be autogenerated as a new ObjectId. The
Location response header specifies the URL of the new document.
Update the first document with
This request uses the dot notation and the
$currentDate operator. These are available in all write requests!
Get the updated document again.
The returned representation contains all the document properties plus few more. The
_etag is updated automatically by RESTHeart for Web caching and ghost writes management.
Find documents via query.
filter query parameter allows to specify any MongoDB query.
This instance of RESTHeart is configured to always add the
np query parameter to the request; it gets rid of the collection properties and
returns just an array of documents.