How to use curl to do a post request

quick note

How to use curl to do a post request

Quick note here

curl \
http://localhost:8080/v1/posts \
-X POST \
-H "Content-Type:application/json" \
-H "x-api-key:wGbfffcefeggbdgeggfdfg" \
-d '{"version":"9-e8c37eb7-9154-4808-bda7-fd4978134b81","flag":"true"}'