GET Project API

Debraj neogi April 20, 2016

What is the SQL query that gets triggered in the backend when we run the GET Project API call?

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 20, 2016

Quite possibly nothing, if the data you're asking for is indexed.  You could have a look at the Project table to see the basic information, but that's not necessarily being read when you run any specific API call.

Debraj neogi April 21, 2016

Hi Nic,

Thanks for your response, but we could not understand it well. If we are fetching data from the JIRA database, aren't we running an SQL query after all? We need this query for the GET Project API call. The call is https://jira.corp.X.com/rest/api/2/project

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 21, 2016

No, you might not be.  The data you fetch may be being taken from the cache or index, so although your REST call gets data which matches the database, JIRA might not have run any SQL at all to answer the call.

Although, you really don't care about the SQL anyway - the call over REST answers your question, and correctly.  The SQL is utterly irrelevant to you.

Suggest an answer

Log in or Sign up to answer