Here is a simple hello world API. Why isn't it working?

I have created a simple Hello World API that is called in a dashlet.  The problem is it is not returning and not running  success or error.

The dashlet should call the api and then console.log what is being return, which is hello world.

6712.HelloWorldAPI.zip

Parents
  • Are you receiving a 200 status when calling the endpoint?

    I have installed your MLP into a local instance of Sugar. I made a basic GET call in Postman to {{url}}{{api_version}}/Hello/World/7 and my return result was "Hello World"

    So i dont think there's anything wrong with your endpoint itself. I'm betting it has something to do with how you are calling it. I assume you are authenticating first and using the access_token. Otherwise, i'd think you would see at least some error message. Can you share with us your JS that is calling the endpoint?

Reply
  • Are you receiving a 200 status when calling the endpoint?

    I have installed your MLP into a local instance of Sugar. I made a basic GET call in Postman to {{url}}{{api_version}}/Hello/World/7 and my return result was "Hello World"

    So i dont think there's anything wrong with your endpoint itself. I'm betting it has something to do with how you are calling it. I assume you are authenticating first and using the access_token. Otherwise, i'd think you would see at least some error message. Can you share with us your JS that is calling the endpoint?

Children