func getOperationType()

in http/server/otelaudit/otelaudit_helper.go [182:191]


func getOperationType(method string) msgs.OperationType {
	switch method {
	case http.MethodPatch, http.MethodPost, http.MethodPut:
		return msgs.Update
	case http.MethodDelete:
		return msgs.Delete
	default:
		return msgs.Read
	}
}