add-route-constraint
CommunityValidate URL path parameters.
Authorfpindej
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the creation and registration of custom route constraints in ASP.NET Core, ensuring that specific URL path parameters meet defined validation criteria directly at the routing layer, preventing invalid requests from reaching controllers.
Core Features & Use Cases
- Custom Validation: Define regex patterns to validate string path parameters.
- Automatic 404 Responses: Invalid routes automatically return a 404 status code.
- Use Case: Ensure that an
idparameter in a URL like/api/users/{id}only contains alphanumeric characters and periods, up to 100 characters long.
Quick Start
Add a route constraint named 'myConstraint' that validates string parameters using a regex pattern.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: add-route-constraint Download link: https://github.com/fpindej/netrock/archive/main.zip#add-route-constraint Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.