Skip to content

Commit 7f4694d

Browse files
committed
add curl examples
1 parent 8726505 commit 7f4694d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,17 @@ $ npm install -g micro
1515
```
1616
$ micro name-of-microservice.js
1717
```
18+
19+
## Testing with curl
20+
21+
### Upload an image
22+
23+
```
24+
$ curl -F "file=@./image.jpg" http://localhost:3000/
25+
```
26+
27+
### Preview & Save
28+
29+
```
30+
$ curl -X POST -d "{\"image\": \"xxxxxx-xxxx-xxxx-xxxx-xxxxxx.jpg\", \"filter\": \"sepia\"}" http://localhost:3000/
31+
```

0 commit comments

Comments
 (0)