Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Schema registration as part of RestAPI registration.
- Loading branch information
1 parent
d07fd03
commit 9489431
Showing
8 changed files
with
100 additions
and
38 deletions.
There are no files selected for viewing
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
h2o-algos/src/test/resources/META-INF/services/water.api.Schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
water.test.util.TestSchemaPojo | ||
water.test.util.PojoUtilsTest$TestSchemaPojo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package water.api; | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
/** | ||
* REST API registration interfaces. | ||
* | ||
* This is an abstraction layer between a rest server and registration | ||
* modules. | ||
*/ | ||
public interface RestApiContext { | ||
|
||
Route registerEndpoint(String apiName, | ||
String methodUri, | ||
Class<? extends Handler> handlerClass, | ||
String handlerMethod, | ||
String summary); | ||
|
||
Route registerEndpoint(String apiName, | ||
String httpMethod, | ||
String url, | ||
Class<? extends Handler> handlerClass, | ||
String handlerMethod, | ||
String summary, | ||
HandlerFactory handlerFactory); | ||
|
||
|
||
Route registerEndpoint(String methodUri, | ||
Class<? extends RestApiHandler> handlerClass); | ||
|
||
void registerSchema(Schema... schemas); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.