func (api *API) Parse(apiConfigMap map[interface{}]interface{}) error {
	if bindingInterface, ok := apiConfigMap["binding"]; ok {
		if binding, ok := bindingInterface.(string); ok {
			api.binding = binding
		} else {
			return errors.New("binding must be a string")
		}
	} else {
		return errors.New("binding is required")
	}
	if optionsInterface, ok := apiConfigMap["options"]; ok {
		if optionsMap, ok := optionsInterface.(map[interface{}]interface{}); ok {
			api.options = optionsMap  
		} else {
			return errors.New("options if declared must be a map")
		}
	}  
	return nil
}
Parse the configuration map for an API.
package xweb
import "github.com/pkg/errors"
type API struct {
	binding string
	options map[interface{}]interface{}
}
func (api *API) Binding() string {
	return api.binding
}
func (api *API) Options() map[interface{}]interface{} {
	return api.options
}