2 * Copyright (c) 2023 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.server.api;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12 import org.opendaylight.restconf.common.errors.RestconfFuture;
13 import org.opendaylight.restconf.nb.rfc8040.databind.OperationInputBody;
14 import org.opendaylight.restconf.server.spi.OperationOutput;
17 * An implementation of a RESTCONF server, implementing the
18 * <a href="https://www.rfc-editor.org/rfc/rfc8040#section-3.3">RESTCONF API Resource</a>.
21 public interface RestconfServer {
23 // FIXME: use ApiPath instead of String
24 RestconfFuture<OperationOutput> invokeRpc(URI restconfURI, String apiPath, OperationInputBody body);