An open API service indexing awesome lists of open source software.

https://github.com/nekiro/company-web-api

Web Api Application written in .Net Core 3.1, using RestfulApi, Entity Framework and MSSQL
https://github.com/nekiro/company-web-api

api api-server entity-framework mssql netcore resful-api

Last synced: 2 months ago
JSON representation

Web Api Application written in .Net Core 3.1, using RestfulApi, Entity Framework and MSSQL

Awesome Lists containing this project

README

          

# Company Web Api

Company Web Api is a simple Web Api Console App, which let you create new companies and manage them. Companies and their employees are saved in relational database.
Aditionally requests are protected by Base64 basic authentication.
Authentication header is following:
```
Basic
```

This was originally written for a job interview, but they said I'm not good enough :(

Technologies:
- .Net Core 3.1
- Restful Api
- C#
- MSSQL
- Entity Framework

## Supported requests

```
POST /company/create
```

```
{
"Name": "",
"EstablishmentYear”: ,
"Employees": [{
"FirstName": "",
"LastName": "",
"DateOfBirth": "",
"JobTitle": ""
}, ... ]
}
```
Answer
```
{
"Id”:
}
```
 
```
POST /company/search
```
```
{
"Keyword": "",
"EmployeeDateOfBirthFrom": "",
"EmployeeDateOfBirthTo": "",
"EmployeeJobTitles": [“”, ...]
}
```
Answer
```
[{
"Name": "",
"EstablishmentYear”: ,
"Employees": [{
"FirstName": "",
"LastName": "",
"DateOfBirth": "",
"JobTitle": ""
}, ...]
```
 
```
PUT /company/update/
```
```
{
"Name": "",
"EstablishmentYear”: ,
"Employees": [{
"FirstName": "",
"LastName": "",
"DateOfBirth": "",
"JobTitle": ""
}, ...]
}
```
 
```
PUT /company/delete/
```