How to make a post in OpenMRS using REST?

How do i make a call from java to make a post in openmrs?

A simple rest client in java that shows how to create for example a patient in openmrs.

I got it working from the example here :blush: