Introduce restconf.server.{api,spi,mdsal}
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / server / api / RestconfServer.java
1 /*
2  * Copyright (c) 2023 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.restconf.server.api;
9
10 import java.net.URI;
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;
15
16 /**
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>.
19  */
20 @NonNullByDefault
21 public interface RestconfServer {
22
23     // FIXME: use ApiPath instead of String
24     RestconfFuture<OperationOutput> invokeRpc(URI restconfURI, String apiPath, OperationInputBody body);
25 }