Questions tagged [ravendb-http]

The RavenDB HTTP API is the wire protocol for communicating with a RavenDB Server. It uses a JSON based REST syntax.

The RavenDB HTTP API is the wire protocol for communicating with a RavenDB Server. It uses a JSON based REST syntax.

For details, review the HTTP API Documentation.

33 questions
1
vote
1 answer

Odd exception with Raven DB Bulk Insert

I'm experimenting with RavenDB (3.0) at the moment and trying to use the Bulk Insert feature. However although the bulk insert appears to work, I keep getting an exception right after it finishes: An exception of type…
Stephen Byrne
  • 7,400
  • 1
  • 31
  • 51
1
vote
1 answer

RavenDB - can you query a specific entity using the etag to get only the changed documents?

In Raven DB, using the rest api I can get all documents of a particular collection (related documents grouped by entity name) using this: //Get all documents from a…
joecity
  • 106
  • 5
1
vote
1 answer

How to query RavenDB using HTTP API for all documents of a type

I'm trying to query RavenDB using the HTTP client for all documents by type. I would like a collection of the documents with a given type. I understand that there might be limitations only the first 1024 documents will be returned. I am well under…
gaunacode.com
  • 365
  • 2
  • 13
1
vote
1 answer

How to set Raven-Entity-Name metadata in ravendb

HI Please Help me for RavenDB HTTP Client. I want to store data into Raven-Entity-Name called Log but i am not able to set the metadata in PUT command. How we can set the metadata $.ajax({ type: "PUT", url:…
Amit Mourya
  • 538
  • 1
  • 7
  • 18
1
vote
0 answers

RavenDB Import / Export failing on Server but working on Embedded

I am looking at writing an import / export routine for RavenDB so that I can develop on a full server instance locally but can run embedded on the website due to resource contraints. I want to be able to admin functions in a locked down section of…
WestDiscGolf
  • 4,098
  • 2
  • 32
  • 47
1
vote
2 answers

How to get last write date of a RavenDB collection/index

I want to detect when a collection or index was last modified or written to. Note: This works on document level, but i need on collection/index level. How to get last write date of a RavenDB document via C#
Martin Meixger
  • 2,547
  • 24
  • 26
1
vote
1 answer

ravendb parallel dynamic query result is always stale for the first hit

I am using ravendb http api and cannot make two parallel dynamic queries return stale results. Even when the documents were created long time ago. The first hit is always stale without proper result. Second one returns correct results. When I run…
Jan Blaha
  • 3,069
  • 1
  • 22
  • 35
1
vote
1 answer

RavenDB returns 401 Unauthorized when putting document ID containing admin

If my document ID starts with admin then trying to PUT it fails with HTTP 401 Unauthorized PUT http://localhost:8080/databases/mydb/docs/admin admin + anything else also fails prefixing admin e.g. foo-admin works Why is this happening?
Andrew Davey
  • 5,441
  • 3
  • 43
  • 57
1
vote
1 answer

ravendb http api not returning collection

I'm hosting RavenDB in my local IIS. It works like a charm. Any idea what I am missing here though in testing the HTTP API? Using a browser, my call to http://localhost/RavenDB/databases/[databasename]/docs/Users/[id] returns the expected json…
Shawn de Wet
  • 5,642
  • 6
  • 57
  • 88
1
vote
1 answer

Ravendb Multi Get with index

I am trying to use ravendb (build 960) multi get to get the results of several queries. I am posting to /multi_get with: [ {"Url":"/databases/myDb/indexes/composers?query=title:beethoven&fetch=title&fetch=biography"}, …
Derek Ekins
  • 11,215
  • 6
  • 61
  • 71
1
vote
1 answer

Raven DB HTTP API - Property Traversal

I am given the following JSON structure: { "document": { "sections": { "x": { "title": "foo" }, "y": { "title": "bar" } } } } How do I update…
Raj
  • 13
  • 2
0
votes
1 answer

RavenDB - HTTP request to return data in format other than CSV or JSON

I'm running RavenDB v3.0. According to the RavenDB documentation, you are able to access an HTTP link to export a list of documents in CSV format. I've followed the instructions and can generate the export by connecting to an address similar to…
Bassmanjase
  • 167
  • 4
  • 14
0
votes
1 answer

Can I POST multiple patch requests to RavenDB's /bulk_docs HTTP API endpoint?

I'm in the process of writing a node wrapper for RavenDB. I'm using version 3 but as there are no HTTP docs for it, I've been relying on the 2.0 and 2.5 docs. In regards to single document operations, I've used this doc page successfully for PUTs,…
Sethi
  • 1,378
  • 8
  • 14
0
votes
1 answer

How to retrieve the ID as part of an index with AngularJS and RavenDB?

I'm following the tutorials from Pro AngularJS and I'm retrieving a few products from the HTTP API. Instead of using Deployd, I wanted to work with RavenDB instead. Following the advice at this post, I can use the dynamic indexes to get all of the…
Dominic Zukiewicz
  • 8,258
  • 8
  • 43
  • 61
0
votes
1 answer

getting error while restoring backup file in raven DB

I am trying to restore backup file locally using command prompt as below: Raven.Server.exe -src E:\OTUmbraco\OTWDatabases\UAT_RavenDB -dest E:\OTUmbraco\OTWDatabases\DB\RavenDB -restore And I am getting error as below: Esent Restore: Failure!…
user3852515
  • 75
  • 1
  • 1
  • 4