Smartapp API Endpoint

Been trying to continue my smartapp learning and of course run into another snag.

I was playing around with Web Services. I got the example Web Services app and by using the simulator was able to make things work. In the simulator it gives you an API token and an API endpoint.

When I actually install the app how do I get those? They apparently aren’t the same as the simulator ones.

I finally figured out the endpoint. Am able to get a list of devices and status. But I can’t seem to control them. In my URL I do a /switches and it gives me the list. I have tried /switches/on, /switches/:on, etc. Keep getting error method not allowed. I am using the ST Web Serviices Turorial app to do the testing.

Any ideas?