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
1
vote
2 answers

Openrasta posting to resource at the base uri

I have a site in iis7 hosting several openrasta applications as virtual directories. One of these openrasta application hosts a single resource, so I want it to run in the root of that virtual directory. I am able to GET the resource succesfully but…
DChater
  • 11
  • 2
1
vote
1 answer

How to set Content-Type header charset in OpenRasta

When I return my object as JSON via JsonDataContractCodec OpenRasta sets Content-Type header to application/json but ignores charset part of content type. When I use Chrome it sends GET request with folowing…
Sergey Mirvoda
  • 3,209
  • 2
  • 26
  • 30
1
vote
2 answers

RESTful Webservice with embedded IronPython: engine & scope questions

I have a RESTful C# web service (using Open Rasta) that I want to run IronPython scripts that talk to a CouchDB. One thing I could use some clarification on is: How often do I need a new instance of the python engine and the scope? one each per…
jdoig
  • 1,472
  • 13
  • 27
1
vote
1 answer

Uploading with multipart/form-data using OpenRasta and IMultipartHttpEntity

I'm trying to post some files using OpenRasta. I've gotten as far as getting my handler called, but by all appearances the stream in the entity is empty. Here's my handler: public OperationResult Post( IEnumerable
Ben Fulton
  • 3,988
  • 3
  • 19
  • 35
1
vote
1 answer

When handling exceptions in OpenRasta handlers, what is the best way to convert to a response?

I'm using OpenRasta 2.0 to build a REST API and its extensibility is fantastic - we've managed for instance to plug-in OAuth authentication using DotNetOpenAuth fairly painlessly. However I've come to the point now where I need to define our…
Kieran Benton
  • 8,739
  • 12
  • 53
  • 77
1
vote
1 answer

OpenRasta Default Codec

I want to set a default codec in OpenRasta for all requests. i.e. When no other codec has been found using other methods, I want to use a custom JSON codec as the default. How do you wire this up in the pipeline?
Eric Hauser
  • 5,551
  • 3
  • 26
  • 29
1
vote
1 answer

How to configure error response formatting on Windows Azure Web App

I am building a demo API for some sort of issue tracker using Open Rasta and ASP.NET - and deploying to a Windows Azure Web App. The API returns detailed error information in a dedicated media-type (application/mason+json). On my local machine I get…
Jørn Wildt
  • 4,274
  • 1
  • 21
  • 31
1
vote
1 answer

Is it possible to serve up a resource as both JSON and Aspx with OpenRasta?

(I'm also asking this on the OpenRasta google group) Hey all, I've been using OpenRasta to convert an old web application we have into something RESTful. IS it possible to serve up a resource (or specifically a list of resources) as both .aspx and…
Jeffrey Cameron
  • 9,975
  • 10
  • 45
  • 77
1
vote
1 answer

Is it possible to use HTTPS with OpenRasta?

Does anyone know if it is possible to use HTTPS with OpenRasta rather than plain HTTP? I need HTTPS so that sensitive information can be transferred without any risk..
Earlz
  • 62,085
  • 98
  • 303
  • 499
1
vote
1 answer

JQuery data is not passed in the ajax post request, Hence get 415 Unsupported Media Type status code

I am trying to make a call to an api (post) via jquery, but the jquery call does not pass any data to the api and hence it fails by sending a response with status code 415 Unsupported Media Type. I have pasted the jquery code below. Am I missing…
sham
  • 691
  • 8
  • 28
1
vote
0 answers

Authorization Header Or RequiresAuthentication Attribute

I am using OpenRasta for building my REST API and want to enable the Authentication for selected number of methods in Handler. So i have put RequiresAuthentication attribute for those methods. I have a authentication scheme defined for it. So when i…
prashant
  • 2,181
  • 2
  • 22
  • 37
1
vote
0 answers

Extra Request On 301 Moved Permanently Response

I am building a REST API method which return 301 Moved Permanently if my resource identifier gets updated and 204 Modified in other case. But after getting 301 Moved Permanently same request gets fired second time(Different behavior in firefox and…
prashant
  • 2,181
  • 2
  • 22
  • 37
1
vote
1 answer

Dictionary Serialization DeSerialization Issue

I am using OpenRasta framework for REST API implementation. I have field in class which is of the type Dictionary .I am testing this using REST Console(Google Chrome Plugin). After GET request to resource it gives me response in…
prashant
  • 2,181
  • 2
  • 22
  • 37
1
vote
1 answer

Accessing encoded stream in OpenRasta

I have a need to access the encoded stream in OpenRasta before it gets sent to the client. I have tried using a PipelineContributor and registering it before KnownStages.IEnd, tried after KnownStages.IOperationExecution and after…
PlanetWilson
  • 361
  • 1
  • 2
  • 8
1
vote
0 answers

Error build open rasta castle windsor

I try to build OpenRasta Castle Windsor. Firstly, I clone Openrasta Castle Github Repository. And I execute make.bat from command prompt. But I got these…
Adi Sembiring
  • 5,798
  • 12
  • 58
  • 70