Use CURL to post JSON to the application.
To see all students, you can do a GET:
curl -X GET http://{HOSTNAME}:{PORT}/students/all
To create a new student, do a post
curl -X POST -H "Content-Type: application/json" -d "{\"name\" : \"Robert\", \"lastName\" : \"Tomson\"}" http://{HOSTNAME}:{PORT}/students/add