-
Notifications
You must be signed in to change notification settings - Fork 3
/
do-init-products.sh
executable file
·27 lines (20 loc) · 1.44 KB
/
do-init-products.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# inizializza il db dei prodotti
curl -X POST "http://localhost:8080/productservice/products" -H "accept: */*" -H "Content-Type: application/json" \
-d "{ \"name\": \"Guerra e Pace\", \"category\": \"Libro\", \"stockLevel\": \"3\", \"price\": \"19.99\" }"
echo
curl -X POST "http://localhost:8080/productservice/products" -H "accept: */*" -H "Content-Type: application/json" \
-d "{ \"name\": \"Anna Karenina\", \"category\": \"Libro\", \"stockLevel\": \"2\", \"price\": \"10.99\" }"
echo
curl -X POST "http://localhost:8080/productservice/products" -H "accept: */*" -H "Content-Type: application/json" \
-d "{ \"name\": \"I promessi sposi\", \"category\": \"Libro\", \"stockLevel\": \"2\", \"price\": \"9.99\" }"
echo
curl -X POST "http://localhost:8080/productservice/products" -H "accept: */*" -H "Content-Type: application/json" \
-d "{ \"name\": \"Il Signore degli Anelli\", \"category\": \"Libro\", \"stockLevel\": \"3\", \"price\": \"29.99\" }"
echo
curl -X POST "http://localhost:8080/productservice/products" -H "accept: */*" -H "Content-Type: application/json" \
-d "{ \"name\": \"1984\", \"category\": \"Libro\", \"stockLevel\": \"5\", \"price\": \"8.99\" }"
echo
curl -X POST "http://localhost:8080/productservice/products" -H "accept: */*" -H "Content-Type: application/json" \
-d "{ \"name\": \"The Dark Side Of The Moon\", \"category\": \"Musica\", \"stockLevel\": \"4\", \"price\": \"19.99\" }"
echo