Skip to content

abdoafage/SA2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

- create request

```bash
curl -X POST -H "Content-Type: application/json" -d '{"name":"ahmed", "discount":"3"}' http://localhost:3001/offers/create
```

- delete request

```bash
curl -X DELETE http://localhost:3000/offers/delete/1
```

- update request

```bash
curl -X PUT -H "Content-Type: application/json" -d '{"name":"John", "age":30}' http://localhost:3000/offers/delete/4

```

- show group consumers in kafka server.

```bash
kafka-consumer-groups.sh --bootstrap-server kafka:9092 --describe --group group-test
```

```bash
kafka-consumer-groups.sh --bootstrap-server kafka:9092 --reset-offsets --to-earliest --group group-test --all-topics
```

- select query from DB container.

```bash
SELECT * FROM "Offers" AS "Offers";
```

- to enter the postgres DB.

```bash
psql -U root -d my_db
SELECT table_name FROM information_schema.tables WHERE table_schema = 'public' AND table_catalog = 'my_db';
```

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published