Skip to content

Commit

Permalink
Update Services.cshtml
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Mar 28, 2024
1 parent 3eb956f commit 834d197
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MyApp/Pages/Overview/Services.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ List<Contact> response = client.Get(new GetContacts());
</div>
<div class="max-w-xl leading-7 text-gray-700 lg:max-w-lg prose lg:prose-lg">
<p class="text-left clearfix">
Without any configuration required, ServiceStack already includes <a href="https://docs.servicestack.net/routing#pre-defined-routes">pre-defined routes</a> for all services in the format:
<pre>/api?/[xml|json|html|jsv|csv]/[reply|oneway]/[servicename]</pre>
Where <code>servicename</code> is the name of the Request DTO. For example, the pre-defined URL to call a JSON <code>Hello</code> Service is <code style="white-space: nowrap">/json/reply/hello</code>
Without any configuration required, ServiceStack already includes <a href="https://docs.servicestack.net/endpoint-routing#api-pre-defined-route">pre-defined routes</a> for all services in the format:
<pre>/api/[RequestDto]</pre>
For example, the pre-defined URL to call a JSON <code>Hello</code> Service is <code style="white-space: nowrap">/api/Hello</code>
</p>
<p class="text-left clearfix">
Friendly custom routes are defined using the <code>RouteAttribute</code> applied to the Request DTO. Variable place holders bind by property name and can be used in the path. For example, the path <code>/hello/world</code> will bind "world" to the <code>Name</code> property of the Request DTO.
Expand Down

0 comments on commit 834d197

Please sign in to comment.