Questions tagged [openrasta]

OpenRasta is an open-source MVC framework that can run on .net 2.0 and above, built from the ground-up to enable ReSTful scenarios.

Resources

OpenRasta Site
OpenRasta GitHub Project
OpenRasta Documentation Wiki

149 questions
3
votes
3 answers

Get Image as stream or byte array using OpenRasta

Would anyone be able to give me a quick pointer as to how I can get an OpenRasta handler that returns a byte array. To be exposed in the ResourceSpace without it being a JSON or XML object. i.e. I don't want it transcoded, I just want to be able to…
Mark Dickinson
  • 6,573
  • 4
  • 29
  • 41
3
votes
1 answer

OpenRasta post request cancelled in chrome , 500 status code in firefox, Cross Domain Requests

I have enabled CORS in the Host Environment -- global.asax file. I am trying to post data from one domain to another. I am trying to fire a post api request from JQuery. This request gets cancelled in chrome and status code 500 is returned in…
sham
  • 691
  • 8
  • 28
3
votes
2 answers

OpenRasta URI Maps to Wrong Method and returns inconsistent http status codes

I'm using OpenRasta framework in a .net service and I have two methods as below in the handler public OperationResult Get(int Number) { // Do some operation and get an entity return new OperationResult.OK(Single-MyResource); } public…
sham
  • 691
  • 8
  • 28
3
votes
1 answer

In OpenRasta, is it wrong to configure potentially ambiguous URIs?

Using OpenRasta and given the following 2 handlers: public class HelloWorldHandler1 { public string GetHelloWorld(string test, string test2) { return "Hello.World!"; } } public class HelloWorldHandler2 { public string…
Iain
  • 10,433
  • 16
  • 56
  • 62
2
votes
1 answer

OpenRasta overwriting Content-Length header in HEAD responses

I'm creating a pretty simple HTTP service using OpenRasta. For HEAD requests, the HTTP 1.1 spec states that HEAD requests should have the Content-Length set to "the size of the entity-body that would have been sent had the request been a GET"…
Dave Nichol
  • 181
  • 3
  • 8
2
votes
1 answer

NTLM authentication for OpenRasta

Following from my previous question regarding OpenRasta authentication, I'd like to know if NTLM authentication can be configured for OpenRasta service that is running as executable outside IIS. Cheers.
KlsLondon
  • 1,160
  • 1
  • 9
  • 18
2
votes
2 answers

Orchard CMS : Creating module for OpenRasta, problems with dependency injection

I'm trying to create an Orchard CMS module that enables a RESTful web service using OpenRasta for a given route (/openrasta/* for example). I need to get to the Orchard ContentManager to get the content for the service to return, so my OpenRasta…
greg84
  • 7,541
  • 3
  • 36
  • 45
2
votes
1 answer

Openrasta Data Serialization Issue

I am currently using openRasta to build Rest Api.I am observing strange behavior while sending Ajax requests.Sometimes request is successful sometime it fails and it gives following…
prashant
  • 2,181
  • 2
  • 22
  • 37
2
votes
1 answer

OpenRasta - Providing Filter, Sorting and Paging for List Resources

We are creating a REST API using OpenRasta and apart from regular GET, POST, PUT and DELETE on all resources, we are also providing GET on resources with plural names. So a consumer of the API can GET, POST, PUT and DELETE on User and also perform…
IsmailS
  • 10,797
  • 21
  • 82
  • 134
2
votes
1 answer

OpenRasta CreatedResourceUrl use

I am sending the following response from server : return new OperationResult.Created { CreatedResourceUrl = getURI(newDuplicateKfEntity), ResponseResource = newDuplicateKfEntity }; My question is how can I get this CreatedResourceUrl object in my…
2
votes
4 answers

Is there an OpenRasta like REST framework for Java?

The circumstances force me to start writing a java based server and I am looking for a REST framework for Java. I really like the way OpenRasta works - a REST framework for .NET, so my question - does anyone know a REST framework for Java which…
mark
  • 59,016
  • 79
  • 296
  • 580
2
votes
1 answer

Issue with Openrasta's Get methods' precedence in resource handler

I am new to openRasta framework. I have a resource called Project.I have 2 different types of GET to be done on this resource as i need different info on these two GETs.My configuration is like…
prashant
  • 2,181
  • 2
  • 22
  • 37
2
votes
1 answer

Does OpenRasta supports HEAD HTTP Method?

I'm trying to configure an OpenRasta resource to respond a HTTP HEAD operation. I already tried to use UriName, different method names and signatures, but I couldn't find a solution yet. This is the configuration code that I…
aelesbao
  • 503
  • 4
  • 14
2
votes
1 answer

Logging of OpenRasta exceptions in IIS

How can I enable logging of any exceptions that occur in my handlers, or codecs etc. in IIS? When googling for that, I found a couple of different ways on how to setup tracing. One of those actually worked, but the trace file (xml) is not very…
Evgeniy Berezovsky
  • 18,571
  • 13
  • 82
  • 156
2
votes
1 answer

OpenRasta streaming response

Does anyone know if it is possible to write to the response stream in OpenRasta rather than returning an object as a response resource? Alternatively, am I able to implement an HTTP handler but still leverage OpenRasta's URL rewriting? Thanks Chris
chrism
  • 561
  • 4
  • 14
1 2
3
9 10