Fix a get-operation's bug
Add rest-api's tests