Skip to content

igorpadovan/Carguero

Repository files navigation

Carguero API

This is a programming chalange, where I developed an API where you can register a User and an Address associated with a user.

Installation

Install docker, then execute the command below at the project root.

docker-compose up -d

Create a new database named Carguero, then your are ready to run the api using the commande below

dotnet run --project carguero

Tests

To run test execute

dotnet test

Api Endpoints

Register an user

POST

  • Data Params
{
    "username": "data"
}

Register an address

POST

  • Data Params
{
  "zipCode": "data",
  "number": data,
  "city": "data",
  "district": "data",
  "state": "data",
  "userId": data
}

List all users

GET

Update an address

PUT

  • Data Params
{
  "zipCode": "data",
  "number": data,
  "city": "data",
  "district": "data",
  "state": "data",
  "userId": data
}

Get addresses by username

GET

Delete address by id

GET

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages