PROJECT OF COMPUTER ENGINEERING I PROJECT.
A system for the control of the documentation for the quality management system of the company Pharmaceutical Laboratories of AICA+was created.
An API minimal was created in Asp.net Core 8 complying with all the requisitions captured.
A database was created in PostgreSql robust with these requirements, and for the storage of the files minio was used
In AICA laboratories, you want to keep control of the company's quality management system documentation. This documentation is organized according to a scope, which can be a rector (apply throughout the company) or specific (apply in an EUB); a process, which corresponds to one of the processes defined on the map of organization processes; and a type of document, which is defined by the specialists of the quality area. The code, title, editing, pages, validity date and two associated files, one in PDF format and another in Word is known. It is desired to create a system that allows the creation and visualization of this documentation. To do this, the following requirements are defined:

In order to configure the connection to the PostgreSQL database, follow the following steps:
appsettings.json fileINFO with the corresponding information in each case: }
(...),
"ConnectionStrings" : {
"PostgreSQLConnection" : " Server=INFO;Port=INFO;Database=INFO;User Id=INFO;password=INFO "
}
}dotnet ef database update . Make sure you have the Migrations , if you do not execute the command before: dotnet ef migrations add InitialCreate IMPORTANT
MinIO Server must be installed and the necessary user with writing permit and the bucket in which the data will be stored with the folder structure /pdf and /word configured.
In order to configure the minio connection, follow the following steps:
appsettings.json fileINFO with the corresponding information in each case: }
(...),
"Minio" : {
"Endpoint" : " INFO " ,
"AccessKey" : " INFO " ,
"SecretKey" : " INFO " ,
"Bucket" : " INFO "
}
} Another possible way to test the API is using the minio cloud test server, using the following data in the appsettings.json file: Json:
}
(...),
"Minio" : {
"Endpoint" : " play.min.io " ,
"AccessKey" : " testuser " ,
"SecretKey" : " testuser " ,
"Bucket" : " aica-docs "
}
} Note
These deployments are only to test the API in deployment environments, it is not for the extensive use of it.
A test deployment of the 3 basic services of the API was performed:
A test in Razor Pages was carried out to illustrate how a possible scenario of API would be. The page is in the following link
Integration tests were designed and executed automated to the API in the branch. The last result of the tests is in the 
Lilian Rosa Rojas Rodríguez | Eduardo Alejandro González Martell |
Ing. Pedro Velázquez Borrero |