Server side configuration is clearly explained right from database creation in this Android Upload Image Using Retrofit Library.