API

0. Healthcheck

    curl --location --request GET 'localhost:3000/healthcheck'

1. Search by id

    curl --location --request GET 'localhost:3000/v1/user/<your id>'

2. Search by email

    curl --location --request GET 'localhost:3000/v1/user' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "email": "test@gmail.com",
    }'

3. Create

    curl --location --request POST 'localhost:3000/v1/user' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "email": "test@gmail.com",
        "name": "testUser"
    }'

4. Update

    curl --location --request PATCH 'localhost:3000/v1/user/<user id>' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "name": "newTestUser"
    }'

5. Remove by id

    curl --location --request DELETE 'localhost:3000/v1/user/<user id>'

6. Remove by email

    curl --location --request DELETE 'localhost:3000/v1/user' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "email": "test@gmail.com"
    }'