@AshishBijlwan welcome to the Atlassian developer community.
I recommend creating a new topic for your question. The original question was already marked as solved. Also, your question is really on a different topic because it isn’t using the Jira REST APIs, but external REST APIs. For some other tips, consider How To Ask A Good Question ❓