How to post docker-compose.yml / rancher-compose.yml in rancher api?

Hello - I could see an option in “Add Stack” to paste docker-compose.yml and rancher-compose.yml

I’d like to know how to post those YAML files in rancher API.

Could you please advise.

I’m not an API expert, but here are some docs that might help you get started.

http://docs.rancher.com/rancher/api/
http://docs.rancher.com/rancher/api/api-resources/environment/

Thanks Denise. This is what, I was looking for.

These links aren’t working now… please provide the valid links that we can look for hosting the services through rancher

Googling “Rancher api” brought up this site: https://rancher.com/docs/rancher/v1.6/en/api/v2-beta/ I think that’ll cover your needs!