Skip to content

yagoluiz/user-api

Repository files navigation

User Search API

API responsible for search users using MongoDB Text Search.

Branch project implemented in C# => user-api/dotnet

Instructions for run project

Run project via Docker (using Makefile) or Visual Studio Code (tasks project).

Docker

make compose-up
make compose-down
make compose-log-user-api
make compose-log-user-db

VS Code

Execute F5 command and run database:

make mongo-db

Instructions for run test project

make test-install-mocks
make test-generate-mocks
make test-run
make test-coverage

Other commands

make pkg-update

Endpoints

Swagger

http://localhost:8080/swagger/index.html

v1/users/search

curl -X 'GET' \
  'http://localhost:8080/api/v1/users/search?query=yago&from=1&size=10' \
  -H 'accept: application/json'