This program is done using the c language to implementate the REST api in server-side.