Try to use the search resource and the JQL-parameter:
/rest/api/2/search?jql=project=<PROJECT_KEY> AND issuetype not in (Sub-Task)
Replace <PROJECT_KEY> with the key of the project you are looking for.
You can test your JQL using the JIRA advanced search.
It looks like you're new here. Sign in or register to get started.