030 Third Web Api Service (Division) - chempkovsky/CS82ANGULAR GitHub Wiki

Requirements

  • Before generating WebApi service the developer must define the set of View’s properties that
    • will be used for filtering
  • and the set of View’s properties that
    • will be used for sorting.
  • choose which Webapi methods to generate (Add/Update/Delete/Select One/Select many) for the given view

Steps required to accomplish the task

Run WebApi Wizard

repeat the steps described in the article

First page of the Wizard

repeat the steps described in the article

Second page of the Wizard

repeat the steps described in the article

Third page of the Wizard

  • On the third page of the Wizard
      1. select View
      1. choose the props to be used for sorting and filtering
      1. choose WebApi methods to generate
      1. if to generate localized typescript code-CheckBox using Angular i18n
  • Click Next-button
Click to show the picture

project structure

Fourth page of the Wizard

  • On the Fourth page of the Wizard we choose DefaultWebApiService.Core.cs.t4 T4-template to generate the code. Click Next-button.

Fifth page of the Wizard

  • repeat the steps described in the article

The PhbkDivisionViewWebApiController.cs will be created in the Controllers-folder of the PhBkWebApp.csproj-project

⚠️ **GitHub.com Fallback** ⚠️