Since the original answer was posted to this question Atlassian Cloud has deprecated the specific endpoint of GET /rest/api/2/project. As such there is another endpoint you can use now to get back your projects via REST in Jira Cloud.
For Jira Cloud:
For Jira Server:
I hope this helps to clarify how you can do this in both platforms via the REST API.
We have a few different guides to help get you started. If you're using Jira Server or Data Center, then I'd recommend trying JIRA Developer Documentation: JIRA REST API Version 2 Tutorial
If you're using Jira Cloud, then it might be better to start with Basic auth for REST APIs. This document explains one of the easiest ways to get REST API data in our Cloud platform. There is a blog post about how to make a REST call in Jira Cloud over in https://blog.developer.atlassian.com/creating-a-jira-cloud-issue-in-a-single-rest-call/ however I believe that the authentication in that blog is already out of date. You would need to follow the steps in the Basic auth guide linked instead to make this work.
While you could use lots of different programs in order to make REST API calls, one of the most popular methods is to use curl, a command-line application. I'd suggest using it, regardless of whether you are working with Jira Cloud or Jira Server.
Nice to meet you in our community! Welcome!
Our documentation below can provide you all the additional details you need regarding Jira Software REST API:
For the specific API's that you asked, I believe you can find more details below:
Also, if you are new to our REST API, I strongly recommend you to check our tutorials below:
Please, let me know if you have any follow up questions!
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events