How to configure rest post snap from curl

How to configure rest post snap from curl