Can I hard Code endpoints in my request code?

Options

Can I hard Code endpoints in my request code?

Best Answer

  • Gurpreet
    Gurpreet admin
    Answer ✓

    Hi, @marcwarren.bajo01

    If you are using streaming data, then you will have to use service discovery, since the list of endpoints in the response, depend on capability assigned to your ID.

    For REST data requests, RDP is designed as an evolving platform, and the URL structure along with method signatures can change over a period of time. More specifically, a version number has been included in the URL. Upon a version change, older API endpoint will keep on providing data for some time. Its best, to keep the endpoint URL's in the configuration part of your codebase. See the python samples provided on the forum.

Answers