Snehashish Snehashish - 7 months ago 75
reST (reStructuredText) Question

How do we let the API consumer know what data required to create a resource in RESTful?

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.

Answer Source

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))

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download