The previous commits releated to the API are here
username
:tiki
password
:admin
The API has 5 controllers:
- The Insured controller
- The Company controller
- The Authentication controller
- The File controller
- The Producer controller
Unless the Authentication controller, the rest of them require a Bearer Token authentication to be accesed.
The function of each one is nested to its name, and you can see and test each endpoint from them using accessing the SwaggerUI url: <host>:<port>/swagger/index.html
.
- go to the InsuranceDB directory
- build the container:
docker build -t database:test .
- run the container:
docker run -p 1433:1433 --name insurance-db -d database:test
- go to the InsuranceAPI directory and run install the needed dependencies:
dotnet restore
- run the project:
dotnet run
- go to the main directory
- run the app:
docker-compose up
LICENSE | COMPANY | FOLDER | LIFE | CLIENT | BORN | ADDRESS | STATE | VTO | CITY | DNI | PHONES1 description | DESCRIPTION | CUIT | PRODUCER |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
string | string2 | number | dd/mm-dd/mm | lastnames firstname !(string)3 | dd/mm/yyyy | street number !P4 number !DTO5 number | ACTIVA or ANULADA or EN JUICIO | number | string | !DNI number or LE number | number or number !(string)6 | string | string | string7 |
Footnotes
-
if there are more than one phone for an insured, they have to be separated by '/'. ↩
-
an abbreviation of the company's name. in the case, could be 'COOP' or 'FEDPAT'. ↩
-
the string between braces is the insured policy ↩
-
indicates the floor ↩
-
indicates the departament ↩
-
the string between braces is the description of the number phone ↩
-
this string contains the producer's name, and it needs to match with one of the corresponding producers stored in the database. The italized text means that that property is optional The parts where ! appears means that the parser expect literally that/those character/s. ↩