It is a simple web API application to manage employees built using Asp.NET Core and EntityFramework Core.
- Retrieve Employees
- Retrieve Employee By ID
- Insert Employee
- Update Employe
- Delete Employee
VERB | URL | Description |
---|---|---|
GET |
api/employees |
To retrieve all employees |
GET |
api/employees/1 |
To retrieve employee by ID |
POST |
api/employees |
To create a new employee |
PUT |
api/employees/id |
To update an existing employee |
DELETE |
api/employees/id |
To delete an existing employee |
Use these instructions to get the project up and running.
You will need the following tools:
- Visual Studio Code or Visual Studio 2019 (version 16.3 or later)
- .NET Core SDK 3
- Node.js (version 10 or later) with npm (version 6.11.3 or later)
Follow these steps to get your development environment set up:
-
Clone the repository
-
At the root directory, restore required packages by running:
dotnet restore
-
Next, build the solution by running:
dotnet build
-
Next, within the
\EmployeeApi
directory, launch the back end by running:dotnet run
-
Launch http://localhost:5000/api in your browser to view the API
-
Make changes, add new features or fix a bug.
-
Make first pull request.
- .NET Core 2.2 or latest
- ASP.NET Core latest
- Entity Framework Core latest