15 lines
747 B
C++
15 lines
747 B
C++
// Route: POST /google/enterprise/search
|
|||
|
|
#include "google/enterprise/cases.hpp"
|
||
|
|
|
||
|
|
using namespace molo::example::test;
|
||
|
|
|
||
|
|
int main() {
|
||
|
|
const std::string sc =
|
||
|
|
"projects/p1/locations/global/collections/default_collection/engines/e1/servingConfigs/default_search";
|
||
|
|
check_enterprise_post_route("/google/enterprise/search", "{\"serving_config\":\"" + sc + "\",\"query\":\"refunds\"}",
|
||
|
|
"{\"serving_config\":\"" + sc + "\",\"query\":\"x\",\"page_size\":0}", "page_size 0");
|
||
|
|
check_enterprise_dry_run("/google/enterprise/search", "{\"serving_config\":\"" + sc + "\",\"query\":\"refunds\"}",
|
||
|
|
"engines/e1/servingConfigs/default_search:search");
|
||
|
|
return finish("google/enterprise/search");
|
||
|
|
}
|