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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.