code: func (s *HTTPServer) IntentionEndpoint(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
  	switch req.Method {
  	case "GET":
  		return s.IntentionList(resp, req)
  
  	case "POST":
  		return s.IntentionCreate(resp, req)
  
  	default:
  		return nil, MethodNotAllowedError{req.Method, []string{"GET", "POST"}}
  	}
  }
docs: // /v1/connection/intentions