17 lines
795 B
C++
17 lines
795 B
C++
// Route: POST /google/enterprise/answer
|
|||
|
|
#include "google/enterprise/cases.hpp"
|
||
|
|
|
||
|
|
using namespace molo::example::test;
|
||
|
|
|
||
|
|
int main() {
|
||
|
|
const std::string sc =
|
||
|
|
"projects/p1/locations/global/collections/default_collection/dataStores/d1/servingConfigs/default_search";
|
||
|
|
check_enterprise_post_route("/google/enterprise/answer",
|
||
|
|
"{\"serving_config\":\"" + sc + "\",\"query\":\"what is covered\"}",
|
||
|
|
"{\"serving_config\":\"" + sc + "\",\"query\":\"\"}", "empty query");
|
||
|
|
check_enterprise_dry_run("/google/enterprise/answer",
|
||
|
|
"{\"serving_config\":\"" + sc + "\",\"query\":\"what is covered\"}",
|
||
|
|
"servingConfigs/default_search:answer");
|
||
|
|
return finish("google/enterprise/answer");
|
||
|
|
}
|