bbyars / castle.monorail.routing Goto Github PK
View Code? Open in Web Editor NEWa RESTful routing library for Castle MonoRail, using System.Web.Routing
License: MIT License
a RESTful routing library for Castle MonoRail, using System.Web.Routing
License: MIT License
1. What is Castle.MonoRail.Routing Castle.Monorail.Routing was developed to provide a better routing system to Castle.MonoRail. The System.Web.Routing namespace is integrated into MonoRail, with some extension methods to provide nice resourceful URLs. 2. Example // In Global.asax.cs var routes = new RouteCollection(); routes.MapResource("patients"); routes.MapResources("labs", "patients/{mrn}"); The code above maps the standard RESTful routes for the following resources. * A list of patients (/patients) * A patient (/patients/123) * A patient edit form (/patients/123/edit) * A patients creation form (/patients/123/new) HTTP verbs are leveraged to map those resources to the following actions on the PatientsController: * Index (GET /patients) * Create (POST /patients) * Show (GET /patients/123) * Update (PUT /patients/123, or POST /patients/123?method=put) * Destroy (DELETE /patients/123, or POST /patients/123?method=delete) * Edit (GET /patients/123/edit) * New (GET /patients/123/new) For nested resources (for example, labs which are tied to a patient), set the resourcePrefix to the parent resource(s). For example, a resourcePrefix of "patients/{mrn}" and a resourceName of "labs" will create the following URL for a list of labs: /patients/123/labs (with the mrn parameter set to 123)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.