RDCore.Web Reference
Note
Cette section n'est disponible qu'en anglais. This section is only available in English.
This reference describes RDCore.Web, the web framework of RDCore. An RDCore.Web application serves the procedures of an RD-VBA project's controller modules as HTTP endpoints, through ASP.NET Core. Each section gives a part's syntax, what makes it valid, what it does when a request arrives, and the types that implement it. The API reference documents those types.
RD-VBA itself is described by RD-VBAL, and VBA by MS-VBAL.
The site
| Page | Contents |
|---|---|
| Home (English and French) | What RDCore.Web is, what works, and where to go next. |
| Overview (English and French) | How an annotated class module becomes endpoints behind any frontend, and how that relates to ASP.NET Core and to an Excel or Access project. A table maps each annotation to its ASP.NET Core counterpart. |
| Getting Started (English and French) | Build and run the host, write a controller module, compose it into a program with rdc, and call it. |
| This reference (English) | Each part's syntax and rules, and the types that implement it. |
| API reference (English) | The public types of RDCore.Web, generated from their xmldocs. |
Where a page relies on ASP.NET Core (routing, model binding, problem details, Kestrel, hosting), it links Microsoft's ASP.NET Core documentation instead of explaining it.
Table of Contents
A section not yet written is listed without a link.
- 1.0 Applications
- 2.0 Annotations
- 3.0 Routes
- 4.0 Binding
- 5.0 Responses
- 6.0 Machines
- 7.0 Hosting
- 8.0 JSON Values
- 9.0 OpenAPI
| Section | Covers |
|---|---|
| 1.0 | What an application is: a request, a machine of the pool, the procedure, and the response. |
| 2.0 | The comment annotations that declare a controller module and its endpoints. |
| 3.0 | How an endpoint's route is made from its controller's route and its own, and the parameters a route names. |
| 4.0 | How a request's route values, query string and body become the procedure's arguments. |
| 5.0 | The response each outcome of the procedure answers: a value, no value, a run-time error, and any other outcome. |
| 6.0 | The machines that run the procedures, and the pool that gives each request one of its own. |
| 7.0 | How an ASP.NET Core application maps the endpoints, and the host that serves the application's pages. |
| 8.0 | How a procedure's arguments and returned value convert between VBA and JSON, objects of the workspace's classes included, and the RDJson library that VBA code converts its own values with. |
| 9.0 | The OpenAPI document the host serves, the JSON Schemas of the procedures' declared types, and a TypeScript client made from it. |
Conventions
Section numbers
Each chapter is one page; its sections are the headings of that page. A section is cited as §2.1, and a section of RD-VBAL or MS-VBAL with its prefix, as RD-VBAL §3.0.1.1 or MS-VBAL §5.3.1.11.
Pages
| Heading | Contents |
|---|---|
| Syntax | How the part is written in a module, or in a request. |
| Static Semantics | What makes it valid, and what happens when it is not: what the endpoints are made of before any request arrives. |
| Runtime Semantics | What happens when a request arrives. |
| Implementation | The types that implement the part, linked to the API reference. |
Notes
| Note | Meaning |
|---|---|
| Not implemented. … | A limitation: what RDCore.Web does not do, and what happens instead when that is known. |