Rest API call inside azure function in java

Anonymous
2022-11-28T11:56:06.72+00:00

I dont find any documentation on making rest api calls inside azure function in JAVA.Could you please help me on this?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-11-28T12:22:51.687+00:00

    @Anonymous Thanks for reaching out. Depending upon your requirement you can create any of supported trigger to trigger your function app and your function app code will make the HTTP calls. You can simply leverage the same code to call any endpoint using REST in Java. In case if there are any dependencies on Third party libraries then you can refer to this section.

    You can leverage the HTTPRequest client and build your request as per your need.

    Sharing previous discussion on restful call in Java and third-party document for your reference. Please update and make the necessary changes as per your needs.
    https://stackoverflow.com/questions/3913502/restful-call-in-java
    https://www.ibm.com/docs/en/rtw/9.0.1?topic=services-example-calling-rest-api-java-http

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.