This is the API for the Devs Who Run application. It provides endpoints for managing members and their activities.
-
Build the Docker image:
docker build -t devs-who-run-api -f devs-who-run-api/Dockerfile .
-
Run the Docker container:
docker run -p 8080:80 devs-who-run-api
-
The API will be accessible at
http://localhost:8080
.
-
Restore the dependencies:
dotnet restore
-
Build the project:
dotnet build
-
Run the project:
dotnet run --project devs-who-run-api
-
The API will be accessible at
http://localhost:5299
.
The API can be configured using the appsettings.json
and appsettings.Development.json
files located in the devs-who-run-api
directory. These files contain settings for logging, connection strings, and other configuration options.
The following endpoints are available in the API:
GET /getPartnerConference
: Retrieves the list of partner conferences.POST /addMember
: Adds a new member.GET /getMemberByEmail/{email}
: Retrieves a member by their email.GET /member/{id}
: Retrieves a member by their ID.
To apply the latest Entity Framework migrations, use the following commands:
-
Add a new migration:
dotnet ef migrations add <MigrationName> --project devs-who-run-api
-
Update the database:
dotnet ef database update --project devs-who-run-api