Doubt about post request

Hello friends.

Yii2 accept post request of another app? For exemplo I have a app created on yii2, on this app has a controller that generate a json, so I have another app on java, this app need the json that Yii2 controller generate, so I send a request but I receive a Bad Request (#400). Why? How can i fix this?

If I call direct link test:

http://admapps-apps.getup.io/adm_mobile/web/usermobile/add

The json is showed on browser, but when I use this link on java to receive json I receive the error 400.

Yes but in this case you have to turn off CSRF-validation for that concrete action.

Thanks for help

I put this code on my controller:

public $enableCsrfValidation = false;

And turn off csrf, but all actions are turn off, What Can i do to turn off a individual actions? Is it possible?

Thanks