Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.46 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.46 KB

Sendora City API

CI ⚙️ CD 🚀

Sample .NET Core API that creates city, houses and stores using a PostgresSQL database.

Usage

Requirements

Docker-compose should be installed in order to run the project.

How to run

  1. Clone the repository
  2. Run docker-compose up in the root folder

How to use

Open a brower and navigate to http://localhost:8080/swagger/index.html to see the API documentation.

Endpoints

The API has 3 endpoints:

  • /api/cities:
    • GET /api/cities - List cities
    • POST /api/cities - Creates a new city
    • GET /api/cities/{id} - Gets a city
    • PATCH /api/cities/{id} - Updates a city
    • DELETE /api/cities/{id} - Deletes a city
  • /api/houses:
    • GET /api/houses - List houses
    • POST /api/houses - Creates a new house
    • GET /api/houses/{id} - Gets a house
    • PATCH /api/houses/{id} - Updates a house
    • DELETE /api/houses/{id} - Deletes a house
  • /api/stores:
    • GET /api/stores - List stores
    • POST /api/stores - Creates a new store
    • GET /api/stores/{id} - Gets a store
    • PATCH /api/stores/{id} - Updates a store
    • DELETE /api/stores/{id} - Deletes a store