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
0
votes
1 answer

OpenRasta URI and method binding clarification - RESTful webservice

I'm using Openrasta for my RESTful webservice and I've a small doubt with regards to the method parameters and URI For example: I've following Setup for user entity. Configuration: ResourceSpace.Has.ResourcesOfType() …
JPReddy
  • 63,233
  • 16
  • 64
  • 93
0
votes
2 answers

Using arbitrary JSON objects in OpenRasta

I can't seem to find anything in the OpenRasta docs or tutorials that shows how to use arbitrary JSON objects (i.e. objects not predefined using C# classes) for both receiving from and responding back to the client. One way to do it would be to use…
Evgeniy Berezovsky
  • 18,571
  • 13
  • 82
  • 156
0
votes
1 answer

Adding items to a resource restfully using OpenRasta

I'm using OpenRasta to create a Survey application. I have a SurveyResource that is accessible at /surveys/{id} and editable at /surveys/{id}/edit I'd now like to add questions to the survey, as that is the point of a survey, but I'm not sure what…
oharab
  • 4,405
  • 3
  • 19
  • 15
0
votes
1 answer

OpenRasta Route Constraints

If I want to be able to get a person by /Person/1 and /Person/Blair How can i do this. Configuration Class: public class RastaConfiguration : IConfigurationSource { public void Configure() { using (OpenRastaConfiguration.Manual) …
Blair Davidson
  • 901
  • 12
  • 35
0
votes
2 answers

OpenRasta can't properly deserialize an entity on PUT

I'm experiencing some really strange behavior when handling an HTTP PUT in an OpenRasta handler. The handler method signature looks like this: public CustomerResource Put(CustomerForm customerForm) And here is the relevant ResourceSpace…
Asbjørn Ulsberg
  • 8,721
  • 3
  • 45
  • 61
0
votes
1 answer

Set the HTTP status code from an IOperationInterceptor in OpenRasta

I've written an ExceptionInterceptor that wraps the operation invocation in a try/catch to have centralized exception handling. What I also want to do is have centralized HTTP status code handling, but I seem to be unable to set the HTTP status code…
Asbjørn Ulsberg
  • 8,721
  • 3
  • 45
  • 61
0
votes
1 answer

Get the deserialized entity from outside the receiving handler in OpenRasta

In OpenRasta (version 2.0.50727), how do I get to the instance of the deserialized entity (after being passed through object binding) from outside the handler that receives the request? To be specific; in the case of an exception, I want an…
Asbjørn Ulsberg
  • 8,721
  • 3
  • 45
  • 61
0
votes
2 answers

OpenRasta IoC with Unity 2.0

Does OpenRasta support Unity 2.0 ? The DI.Unity is build against Unity 1.2
Eatdoku
  • 6,569
  • 13
  • 63
  • 98
0
votes
2 answers

Restful Service Development - Hosting Option

We' re creating an API with Openrasta. What is the most effective way to host this service without IIS? Thanks!
0
votes
2 answers

FubuMVC and OpenRasta documentation and resource

im looking at using FuBuMVC or OpenRasta frameworks for the up coming projects we have here. Without getting into much details on the nature of the project I would like some opinions on the documentation, support, tutorials, communities behind the…
Eatdoku
  • 6,569
  • 13
  • 63
  • 98
0
votes
1 answer

Body format options for OpenRasta POST action

Given the following code and config for OpenRasta : ResourceSpace.Has.ResourcesOfType() .AtUri("/foo/{fooID}") .And.AtUri("/foo") .HandledBy() .AsJsonDataContract(); public OperationResult GetFoo(int fooID) {…
BertC
  • 140
  • 6
0
votes
1 answer

Azure REST API on a web role does not accept POST with Json body

We are using Open Rasta on an Azure Web Role to provide a REST API. Our GET methods work fine returning Json data. When I try and POST a request with a Json body I get this error. The server cannot service the request because the media type is…
woaksie
  • 89
  • 1
  • 3
  • 13
0
votes
1 answer

How to create a RESTful interface for the following scenario?

I have a resource called Media, which has a number of properties (Name, MediaType, MetaData, File). The Media resource also holds a pysical file. Now some of the details of the Media resource (MetaData), are gathered from the file. In my system, I…
Matt Brailsford
  • 2,209
  • 3
  • 28
  • 40
0
votes
1 answer

Upload file in OpenRasta using PUT

Is it possible to upload a file in OpenRasta using the PUT post method?
Matt Brailsford
  • 2,209
  • 3
  • 28
  • 40
0
votes
1 answer

how to handle POST method with OpenRasta?

I have a simple OpenRasta webservice and a console client for the webservice. Using GET method is quite easy - I defined GET in OpenRasta and when client uses this code it all works fine HttpWebRequest request =…
Adam
  • 1
1 2 3
9
10