Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 371 Bytes

File metadata and controls

17 lines (12 loc) · 371 Bytes

API Endpoints

POST Endpoint: Register a new user

To register a new user, use the following curl command:

curl -X POST http://localhost:3000/register \
-H "Content-Type: application/json" \
-d '{"name": "John Doe", "email": "john.doe@example.com", "password": "123456"}'

GET Endpoint: Fetch all user

curl http://localhost:3000/users