openrasta

Can I register multiple resources with one handler and one URI in Open Rasta?

本小妞迷上赌 提交于 2019-12-04 21:14:54
I want to register mutliple resources with one handler and one URI.so want to confirm that is this possible in open rasta. I have gone through a bit of websites regarding open rasta but couldn't able to conclude that whether this is possible or not? ResourceSpace.Has .ResourcesOfType<Request>() .AtUri("/processing") .HandledBy<SomeHandler>() .TranscodedBy<SomeCodec>(); I need to handle all the request which are derived from the base class "Request". It would be great if some body could actually shed light on this. So if everything is a request and you want to tunnel stuff, you can, using the

OpenRasta - Scott Littlewoods Basic Authentication working example

浪子不回头ぞ 提交于 2019-12-04 13:41:04
I'm testing out the feasibility of using OpenRasta as a viable alternative to ASP.NET MVC. However, I've run into a stumbling block regarding authentication. Let me be clear, "Open Digest Authentication" is NOT an option at this point. I've read that Scott Littlewood created a basic authentication fork for OpenRasta and I've downloaded the source from git and successfully built it. I'm now trying to get the authentication working, so if someone has a real working model, I would be very grateful. Here's what I've done so far: //Authentication.cs using System; using System.Collections.Generic;

Using codec file extensions with OpenRasta returns 404

丶灬走出姿态 提交于 2019-12-03 21:45:21
问题 When using codec uri file extensions with OpenRasta, OR can't resolve the uri and returns a 404. Without the file extension all works ok. The codecs are defined for the object resource and I'm using both XmlDataContract and JsonDataContract. Using neither the .xml or .json extension works, this is for both InMemoryHost (which we're using for testing) and ASP.Net (IIS7, integrated mode). Codec configuration: ResourceSpace.Has.ResourcesOfType<object>() .WithoutUri .AsXmlDataContract() .And

How to support Partial Updates (PATCH) in REST

纵饮孤独 提交于 2019-12-03 02:20:39
问题 I want to implement the partial updates for my resource as i have large resource and want to update the partial information from it.I have gone through the following links but not able to figure out whether to use HTTP POST or PATCH methods. HTTP MODIFY verb for REST? How to submit RESTful partial updates? http://jacobian.org/writing/rest-worst-practices/ https://github.com/archiloque/rest-client/issues/79 http://tools.ietf.org/html/draft-dusseault-http-patch-16 http://greenbytes.de/tech

Getting started with OpenRasta [closed]

僤鯓⒐⒋嵵緔 提交于 2019-12-02 15:59:53
Hi can anyone suggest ways of getting started with OpenRasta? Perhaps articles, tutorials, sample apps & documentation? Andrew Bullock Have some blog posts: OpenRasta Introduction OpenRasta - How to speak REST Whats so good about OpenRasta OpenRasta Introduction Handlers and OperationResults in OpenRasta A better ActionResult: OpenRasta edition What I like about OpenRasta And some videos: OpenRasta demo at SkillsMatter OpenRasta - An MVC Framework with strong opinions The OpenRasta Framework for Building ReST-ful Applications https://github.com/openrasta/openrasta/wiki Are you looking for

How to support Partial Updates (PATCH) in REST

被刻印的时光 ゝ 提交于 2019-12-02 15:51:54
I want to implement the partial updates for my resource as i have large resource and want to update the partial information from it.I have gone through the following links but not able to figure out whether to use HTTP POST or PATCH methods. HTTP MODIFY verb for REST? How to submit RESTful partial updates? http://jacobian.org/writing/rest-worst-practices/ https://github.com/archiloque/rest-client/issues/79 http://tools.ietf.org/html/draft-dusseault-http-patch-16 http://greenbytes.de/tech/webdav/draft-dusseault-http-patch-06.html http://jasonsirota.com/rest-partial-updates-use-post-put-or-patch

IIS 7.5 + enable PUT and DELETE for RESTFul service, extensionless

百般思念 提交于 2019-11-26 17:10:07
i am trying to understand how IIS 7.5 handles POST and PUT request. I am writing a RESTful service using OpenRasta framework. The POST operation works without any problem, but the PUT operation for the same URL does not. It returns error like the following Detailed Error Information Module: IIS Web Core Notification: MapRequestHandler Handler: StaticFile Error Code: 0x80070002 the url is like this following "http://localhost/MyService/Resource.Something.manifest" Same setup works fine in visual studio development IIS. Solution Basically the default ExtensionlessUrlHandler does not accept PUT