API Request Payload encryption With ECB

I am trying to encrypt API request body using ECB encryption mode and AES algorithm.Is there any reference code in yellow platform for the same.