https://github.com/emrd/dotnet-user-management-api
https://github.com/emrd/dotnet-user-management-api
api dotnet user-management
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/emrd/dotnet-user-management-api
- Owner: EmrD
- Created: 2024-08-01T16:31:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T16:35:39.000Z (almost 2 years ago)
- Last Synced: 2025-11-12T05:36:55.308Z (7 months ago)
- Topics: api, dotnet, user-management
- Language: C#
- Homepage:
- Size: 842 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# .NET API Service Starter
This is a minimal .NET API service starter based on [Google Cloud Run Quickstart](https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-dotnet-service).
## Getting Started
Server should run automatically when starting a workspace. To run manually, run:
```sh
dotnet watch --urls=http://localhost:3000
```
## Testing With cURL
To test the server, you can run these codes after running the server:
Get Users;
```sh
curl http://localhost:3000/users
```
Add User;
```sh
curl -X POST http://localhost:3000/users \
-H "Content-Type: application/json" \
-d '{"Name": "Alice", "Email": "alice@example.com"}'
```
Update User;
```sh
curl -X PUT http://localhost:3000/users/1 \
-H "Content-Type: application/json" \
-d '{"Name": "Alice Updated", "Email": "aliceupdated@example.com"}'
```
Delete User;
```sh
curl -X DELETE http://localhost:3000/users/1
```