Sample .NET Core API that creates city, houses and stores using a PostgresSQL database.
Docker-compose should be installed in order to run the project.
- Clone the repository
- Run
docker-compose up
in the root folder
Open a brower and navigate to http://localhost:8080/swagger/index.html
to see the API documentation.
The API has 3 endpoints:
/api/cities
:GET /api/cities
- List citiesPOST /api/cities
- Creates a new cityGET /api/cities/{id}
- Gets a cityPATCH /api/cities/{id}
- Updates a cityDELETE /api/cities/{id}
- Deletes a city
/api/houses
:GET /api/houses
- List housesPOST /api/houses
- Creates a new houseGET /api/houses/{id}
- Gets a housePATCH /api/houses/{id}
- Updates a houseDELETE /api/houses/{id}
- Deletes a house
/api/stores
:GET /api/stores
- List storesPOST /api/stores
- Creates a new storeGET /api/stores/{id}
- Gets a storePATCH /api/stores/{id}
- Updates a storeDELETE /api/stores/{id}
- Deletes a store