<p>With the release of version 2.x of rancher we started using v3 of the Apis but to my despair there is no proper documentation for the apis. 
If we visit the Rancher Documentation Page <a href="https://rancher.com/docs/rancher/v2.x/en/api/" rel="nofollow noreferrer">https://rancher.com/docs/rancher/v2.x/en/api/</a> we just find the brief intro and not the information about how to use the specific endpoints and what are the inputs accepted by them.
For eg we have a v3/cluster endpoint to create the cluster but it requires "n" number of inputs in the form strings/objects. How could one find out what all attributes are needed and also what all attributes map to what thing in the UI.</p>

<p>There is some documentation available for v2 of the api but things have changed miles with the introduction of v3 of Rancherapi.</p>

<p><strong>UseCase :</strong> I need to automate the complete process of cluster creation to helm chart installation</p>

<p>I took some help from the medium blog : <a href="https://medium.com/@superseb/adding-custom-nodes-to-your-kubernetes-cluster-in-rancher-2-0-tech-preview-2-89cf4f55808a" rel="nofollow noreferrer">https://medium.com/@superseb/adding-custom-nodes-to-your-kubernetes-cluster-in-rancher-2-0-tech-preview-2-89cf4f55808a</a>  to understand the APIs</p>

<p>Quite good fragment of Rancher documentation about v3 API you can find here: 
<a href="https://cdn2.hubspot.net/hubfs/468859/Rancher%202.0%20Architecture%20-%20Doc%20v1.0.pdf" rel="nofollow noreferrer">v3-rancher</a> (starting from page 9).</p>

<p>Source code you can find here: <a href="https://github.com/rancher/validation/tree/master/tests/v3_api" rel="nofollow noreferrer"><code>rancher-v3-api</code></a>.</p>
