Project: mesos
Issue MESOS-5710: The /logging/toggle endpoint accepts requests with any http method
Any of a GET, POST, PUT, or DELETE to `/logging/toggle?level=INFO&duration=5mins` will set the log level and return 200. To be consistent with REST-like syntax, DELETE, GET, and even POST are wrong and should return a MethodNotAllowed. Once this endpoint no longer accepts GET, it is no longer appropriate to use the GET_ENDPOINT acl here. Instead we could create a new PUT_ENDPOINT_WITH_PATH acl (which hopefully ignores query params), or add a first-class TOGGLE_LOGGING acl.
Story points: 3