Skip to content

Commit

Permalink
Refactored post handler to match its function and rebuilt OpenApiSpecs (
Browse files Browse the repository at this point in the history
  • Loading branch information
rahelarnold98 authored May 4, 2022
1 parent a0d59d2 commit 1c8c285
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
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

0 comments on commit 1c8c285

Please sign in to comment.