Skip to content

felipeclarindo/mottu-mapping-api-dotnet

Repository files navigation

🌍 Leia em Português

Mottu Mapping API

API RESTfulf developed as ASP.NET Core and OracleDB + EF Core to manage the motos, patios and sectors.

Routes

(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 id
  • GET api/v1/patios - Get All Patios.
  • POST api/v1/patios - Create a New patio
  • PUT api/v1/patios/{id} - Update Patio by Id.
  • DELETE api/v1/patios/{id} - Delete Patio by Id.

Steps to run

  1. Clone the repository:
git clone https://github.com/felipeclarindo/mottu-mapping-api-dotnet.git
  1. Enter repository:
cd mottu-mapping-api-dotnet
  1. Create and configure the .env file using the model in .env.example

  2. Enter in Api Directory:

cd ./Src/WebApi
  1. Run migrations:
dotnet ef database update
  1. Run the api:
dotnet run
  1. The api is avaible on:
  1. To run the tests, execute the command bellow:
dotnet test

Contribution

Contributions are welcome! If you have suggestions for improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the GNU Affero License.

About

Api to manage the motos mapped developed with c# using .Net integrated with oracle database.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages