Let’s say there’s a new student to be created. So the design will be POST on /student. But how do the api consumer know what all fields required to create a student? No RESTful document I could find specifying this.
It's just depends on your requirements. You should have API documentation where you can tell the API consumers what data should be at http POST request. You tell the rules))