Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring of POST handlers #292

Merged
merged 1 commit into from
May 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import org.vitrivr.cineast.api.rest.handlers.actions.StatusInvocationHandler;
import org.vitrivr.cineast.api.rest.handlers.actions.bool.FindDistinctElementsByColumnPostHandler;
import org.vitrivr.cineast.api.rest.handlers.actions.bool.SelectFromTablePostHandler;
import org.vitrivr.cineast.api.rest.handlers.actions.feature.FindFeaturesByCategoryGetHandler;
import org.vitrivr.cineast.api.rest.handlers.actions.feature.FindFeaturesByEntityGetHandler;
import org.vitrivr.cineast.api.rest.handlers.actions.feature.FindFeaturesByCategoryPostHandler;
import org.vitrivr.cineast.api.rest.handlers.actions.feature.FindFeaturesByEntityPostHandler;
import org.vitrivr.cineast.api.rest.handlers.actions.feature.FindSegmentFeaturesGetHandler;
import org.vitrivr.cineast.api.rest.handlers.actions.feature.FindSegmentTextGetHandler;
import org.vitrivr.cineast.api.rest.handlers.actions.feature.FindTagsForElementGetHandler;
Expand Down Expand Up @@ -412,8 +412,8 @@ private void registerRestOperations() {
new FindSegmentSimilarStagedPostHandler(retrievalLogic),
new FindSegmentSimilarTemporalPostHandler(retrievalLogic),
new FindSegmentFeaturesGetHandler(),
new FindFeaturesByCategoryGetHandler(),
new FindFeaturesByEntityGetHandler(),
new FindFeaturesByCategoryPostHandler(),
new FindFeaturesByEntityPostHandler(),
new FindSegmentTextGetHandler(),
/* Tags */
new FindTagsAllGetHandler(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Handler for the API call to retrieve all features for all objects for a given category.
*/
public class FindFeaturesByCategoryGetHandler implements ParsingPostRestHandler<IdList, FeaturesByCategoryQueryResult> {
public class FindFeaturesByCategoryPostHandler implements ParsingPostRestHandler<IdList, FeaturesByCategoryQueryResult> {

public static final String ROUTE = "find/feature/all/by/category/{" + CATEGORY_NAME + "}";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Handler for the API call to retrieve all features for all objects for a given table/entity name.
*/
public class FindFeaturesByEntityGetHandler implements ParsingPostRestHandler<IdList, FeaturesByEntityQueryResult> {
public class FindFeaturesByEntityPostHandler implements ParsingPostRestHandler<IdList, FeaturesByEntityQueryResult> {

public static final String ROUTE = "find/feature/all/by/entity/{" + ENTITY_NAME + "}";

Expand Down
14 changes: 7 additions & 7 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1629,10 +1629,6 @@
"type" : "string",
"enum" : [ "PING", "Q_SIM", "Q_MLT", "Q_NESEG", "Q_SEG", "M_LOOKUP", "Q_TEMPORAL", "SESSION_START", "QR_START", "QR_END", "QR_ERROR", "QR_OBJECT", "QR_METADATA_O", "QR_METADATA_S", "QR_SEGMENT", "QR_SIMILARITY", "QR_TEMPORAL" ]
},
"maxLength" : {
"type" : "number",
"format" : "float"
},
"timeDistances" : {
"type" : "array",
"items" : {
Expand All @@ -1642,6 +1638,10 @@
},
"temporalQueryConfig" : {
"$ref" : "#/components/schemas/TemporalQueryConfig"
},
"maxLength" : {
"type" : "number",
"format" : "float"
}
}
},
Expand Down Expand Up @@ -1846,9 +1846,6 @@
"Tag" : {
"type" : "object",
"properties" : {
"description" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
Expand All @@ -1858,6 +1855,9 @@
},
"id" : {
"type" : "string"
},
"description" : {
"type" : "string"
}
}
},
Expand Down