|
@@ -46,18 +46,42 @@ public class RestPutMappingAction extends BaseRestHandler {
|
|
|
new Route(PUT, "/{index}/_mapping/"),
|
|
|
new Route(POST, "/{index}/_mappings/"),
|
|
|
new Route(PUT, "/{index}/_mappings/"),
|
|
|
- Route.builder(POST, "/{index}/{type}/_mapping").deprecated(TYPES_DEPRECATION_MESSAGE, RestApiVersion.V_7).build(),
|
|
|
- Route.builder(PUT, "/{index}/{type}/_mapping").deprecated(TYPES_DEPRECATION_MESSAGE, RestApiVersion.V_7).build(),
|
|
|
- Route.builder(POST, "/{index}/_mapping/{type}").deprecated(TYPES_DEPRECATION_MESSAGE, RestApiVersion.V_7).build(),
|
|
|
- Route.builder(PUT, "/{index}/_mapping/{type}").deprecated(TYPES_DEPRECATION_MESSAGE, RestApiVersion.V_7).build(),
|
|
|
- Route.builder(POST, "/_mapping/{type}").deprecated(TYPES_DEPRECATION_MESSAGE, RestApiVersion.V_7).build(),
|
|
|
- Route.builder(PUT, "/_mapping/{type}").deprecated(TYPES_DEPRECATION_MESSAGE, RestApiVersion.V_7).build(),
|
|
|
- Route.builder(POST, "/{index}/{type}/_mappings").deprecated(TYPES_DEPRECATION_MESSAGE, RestApiVersion.V_7).build(),
|
|
|
- Route.builder(PUT, "/{index}/{type}/_mappings").deprecated(TYPES_DEPRECATION_MESSAGE, RestApiVersion.V_7).build(),
|
|
|
- Route.builder(POST, "/{index}/_mappings/{type}").deprecated(TYPES_DEPRECATION_MESSAGE, RestApiVersion.V_7).build(),
|
|
|
- Route.builder(PUT, "/{index}/_mappings/{type}").deprecated(TYPES_DEPRECATION_MESSAGE, RestApiVersion.V_7).build(),
|
|
|
- Route.builder(POST, "/_mappings/{type}").deprecated(TYPES_DEPRECATION_MESSAGE, RestApiVersion.V_7).build(),
|
|
|
- Route.builder(PUT, "/_mappings/{type}").deprecated(TYPES_DEPRECATION_MESSAGE, RestApiVersion.V_7).build()
|
|
|
+ Route.builder(POST, "/{index}/{type}/_mapping")
|
|
|
+ .deprecated(TYPES_DEPRECATION_MESSAGE, DeprecationLogger.CRITICAL, RestApiVersion.V_7)
|
|
|
+ .build(),
|
|
|
+ Route.builder(PUT, "/{index}/{type}/_mapping")
|
|
|
+ .deprecated(TYPES_DEPRECATION_MESSAGE, DeprecationLogger.CRITICAL, RestApiVersion.V_7)
|
|
|
+ .build(),
|
|
|
+ Route.builder(POST, "/{index}/_mapping/{type}")
|
|
|
+ .deprecated(TYPES_DEPRECATION_MESSAGE, DeprecationLogger.CRITICAL, RestApiVersion.V_7)
|
|
|
+ .build(),
|
|
|
+ Route.builder(PUT, "/{index}/_mapping/{type}")
|
|
|
+ .deprecated(TYPES_DEPRECATION_MESSAGE, DeprecationLogger.CRITICAL, RestApiVersion.V_7)
|
|
|
+ .build(),
|
|
|
+ Route.builder(POST, "/_mapping/{type}")
|
|
|
+ .deprecated(TYPES_DEPRECATION_MESSAGE, DeprecationLogger.CRITICAL, RestApiVersion.V_7)
|
|
|
+ .build(),
|
|
|
+ Route.builder(PUT, "/_mapping/{type}")
|
|
|
+ .deprecated(TYPES_DEPRECATION_MESSAGE, DeprecationLogger.CRITICAL, RestApiVersion.V_7)
|
|
|
+ .build(),
|
|
|
+ Route.builder(POST, "/{index}/{type}/_mappings")
|
|
|
+ .deprecated(TYPES_DEPRECATION_MESSAGE, DeprecationLogger.CRITICAL, RestApiVersion.V_7)
|
|
|
+ .build(),
|
|
|
+ Route.builder(PUT, "/{index}/{type}/_mappings")
|
|
|
+ .deprecated(TYPES_DEPRECATION_MESSAGE, DeprecationLogger.CRITICAL, RestApiVersion.V_7)
|
|
|
+ .build(),
|
|
|
+ Route.builder(POST, "/{index}/_mappings/{type}")
|
|
|
+ .deprecated(TYPES_DEPRECATION_MESSAGE, DeprecationLogger.CRITICAL, RestApiVersion.V_7)
|
|
|
+ .build(),
|
|
|
+ Route.builder(PUT, "/{index}/_mappings/{type}")
|
|
|
+ .deprecated(TYPES_DEPRECATION_MESSAGE, DeprecationLogger.CRITICAL, RestApiVersion.V_7)
|
|
|
+ .build(),
|
|
|
+ Route.builder(POST, "/_mappings/{type}")
|
|
|
+ .deprecated(TYPES_DEPRECATION_MESSAGE, DeprecationLogger.CRITICAL, RestApiVersion.V_7)
|
|
|
+ .build(),
|
|
|
+ Route.builder(PUT, "/_mappings/{type}")
|
|
|
+ .deprecated(TYPES_DEPRECATION_MESSAGE, DeprecationLogger.CRITICAL, RestApiVersion.V_7)
|
|
|
+ .build()
|
|
|
);
|
|
|
}
|
|
|
|