https://github.com/kaungmyathan22/nestjs-grpc-ecommerce-microservice
https://github.com/kaungmyathan22/nestjs-grpc-ecommerce-microservice
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kaungmyathan22/nestjs-grpc-ecommerce-microservice
- Owner: kaungmyathan22
- Created: 2024-05-07T07:03:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-14T09:44:40.000Z (about 1 year ago)
- Last Synced: 2024-12-30T00:27:33.485Z (6 months ago)
- Language: TypeScript
- Size: 508 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Register
```bash
$ curl -X POST http://localhost:3000/auth/register -H "Content-Type: application/json" -d '{"email": "[email protected]", "password": "12345678"}'
```## Login
```bash
$ curl -X PUT http://localhost:3000/auth/login -H "Content-Type: application/json" -d '{"email": "[email protected]", "password": "12345678"}'
```## Create Product
```bash
curl -X POST http://localhost:3000/product -H "Content-Type: application/json" -d '{"name": "Test A", "sku": "A00001", "price": 100, "stock": 5}'
```## Create Order
```bash
curl -X POST http://localhost:3000/order -H "Content-Type: application/json" -d '{"productId": 1, "quantity": 1}'
```