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
- Host: GitHub
- URL: https://github.com/nekiro/company-web-api
- Owner: nekiro
- Created: 2020-10-06T22:29:32.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-07T16:55:39.000Z (about 5 years ago)
- Last Synced: 2025-03-14T11:23:16.026Z (over 1 year ago)
- Topics: api, api-server, entity-framework, mssql, netcore, resful-api
- Language: C#
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/
```