| RDBMS Schema | /crud/tables |
|---|---|
| New Auto Generated Services (C#) | /crud/new/csharp |
| All Services (C#) | /crud/all/csharp |
| Generate DTOs in alt languages (e.g. TypeScript) | |
| * requires DebugMode or Admin role (e.g. ?authsecret=zsecret) | |
Use dotnet tool to generate Types for Tables where AutoQuery Services don't already exist:
x csharp https://localhost:5001 -path /crud/new/csharp
x csharp
<script type="importmap">
{
"imports": {
"@servicestack/client": "./js/servicestack-client.mjs"
}
}
</script>
import { JsonServiceClient } from "@servicestack/client"
import { Hello } from "./dtos.mjs"
const client = new JsonServiceClient()
const api = await client.api(new Hello({ name }))
if (api.succeeded) {
console.log(api.response.result)
}
Generate Typed DTOs from Add ServiceStack Reference