Skip to content

Run HRW24RestfulAPI

The steps for setup HRW24RestfulAPI

  1. Open the folder, to which the projected files checked out.

    ![alt text](image.png)

  2. Open the solution file in Visual Studio 2022

    HRW24RESTfulAPI_2_2

  3. Before proceeding, restore the database on which the preceding work is to be done. (use Microsoft SQL Server Management Studio for doing this)

  4. Do the necessery query executions related with table updations. The queries to be executed and its related details are given below:

    4.1. Open the HRW24-Configuration folder where important queries for API related works are given. QueriesExec_1

    4.2. Execute quries from both Application-Specific Stored Procedures, Client-Specific Stored Procedures folders. Also execute general quries given in the file HRW24DBUpdates. QueriesExec_2

  5. Edit the connection string given in configuration file appsettings.json:

    5.1 Open the appsettings.json from the solution explorer, find it under HRW24RESTfulAPI_3

    5.2 Find the connection string HRW24RESTfulAPI_5

    5.3 Edit connection string by changing details given below with your own:

    • Data Source: DB Server Name

    • Catalog : DB Name

    • User ID : Your user id

    • Password : The password that setup for your DB Server

    5.4 Save the Configuration

  6. Click on the https button to Run the project HRW24RESTfulAPI_8

  7. The screen that shown below will open up. HRW24RESTfulAPI_9