zkweb-framework / ZKWeb

A flexible web framework supports .Net Framework and .Net Core
MIT License
484 stars 141 forks source link

How to using RESTful API in ZKWeb? #1

Closed Tuisku-L closed 7 years ago

Tuisku-L commented 7 years ago

The ActionAttribute's path format is '/something', But I want to use 'GET /something' and 'GET /something/{id}' to create RESTful API. What should I do? Thank you very muuuuuuuuch!

303248153 commented 7 years ago

For now there no direct support for url formatting like "/something/{id}", because advance url matching have more overhead. But I'm thinking about to support it in zkweb 2.0, find a solution that won't cause performance impact.

Tuisku-L commented 7 years ago

Ok I got it.Thanks!

303248153 commented 7 years ago

This feature is supported since 2.0 beta 9