Question: **Rest API - SOQL Query :** 
When I Query i am able to get all user's record instead of mine only. Is there any way to filter for get records of current user only.

Answer: 
CreateBy wont help. Try this instead.
List testList = [SELECT Id, IsPrivate, Name, OwnerId, CreatedDate, CreatedById, LeadSource, Type FROM Opportunity where createdById=:**currentUserId** ];
```
SELECT AccountId
 From User
 WHERE username=:UserInfo.getUsername())

```

Select accountId then check if these records were created by current user in apropriate WHERE clause in your query (you can nest it)