How to make an Simple JSON API with JSON Return in built?

Hey, i am new to Yii2 and struggling with building an simple JSON return. I did the RestAPI Guide from the Wiki but still getting the error “Call to undefined method app\models\User::find()”.

Can someone help me to build an simple call like:
localhost/test and that returns my inbuild json.

best regards