API RESTfulf developed as ASP.NET Core and OracleDB + EF Core to manage the motos, patios and sectors.
(Motos)
GET api/v1/motos- Get All Motos.GET api/v1/motos/{id}- Get Moto by Id.GET api/v1/motos/sectors/{sector_id}- Get Motos by Sector Id.POST api/v1/motos- Create a New Moto.PUT api/v1/motos/{id}- Update Moto by Id.DELETE api/v1/motos/{id}- Delete Moto by Id.
(Sectors)
GET api/v1/sectors- Get All Sectors.GET api/v1/sectors/{id}- Get Sector by Id.POST api/v1/sectors- Create a New Sector.PUT api/v1/sectors/{id}- Update Sector by Id.DELETE api/v1/sectors/{id}- Delete Sector by Id.
(Patios)
GET api/v1/patios/{id}- Get Patio by idGET api/v1/patios- Get All Patios.POST api/v1/patios- Create a New patioPUT api/v1/patios/{id}- Update Patio by Id.DELETE api/v1/patios/{id}- Delete Patio by Id.
- Clone the repository:
git clone https://github.com/felipeclarindo/mottu-mapping-api-dotnet.git- Enter repository:
cd mottu-mapping-api-dotnet-
Create and configure the
.envfile using the model in .env.example -
Enter in Api Directory:
cd ./Src/WebApi- Run migrations:
dotnet ef database update- Run the api:
dotnet run- The api is avaible on:
- To run the tests, execute the command bellow:
dotnet testContributions are welcome! If you have suggestions for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the GNU Affero License.