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.
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