Fix DCS and Add WMS API

API need to be tested