File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/com/ghoelzer_rht/cosmosdb/demo Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,18 @@ public HttpResponseMessage run(
35
35
methods = {HttpMethod .GET , HttpMethod .POST },
36
36
authLevel = AuthorizationLevel .ANONYMOUS )
37
37
HttpRequestMessage <Optional <String >> request ,
38
- @ CosmosDBInput (name = "cities_demo " ,
39
- databaseName = "ghasp-java-demo " ,
40
- collectionName = "Items " ,
38
+ @ CosmosDBInput (name = "database " ,
39
+ databaseName = "ghasp_java_demo " ,
40
+ collectionName = "cities_demo " ,
41
41
id = "{Query.id}" ,
42
- partitionKey = "{Query.state_code}/{Query.country_code} " ,
42
+ partitionKey = "{Query.state_code}" ,
43
43
connectionStringSetting = "Cosmos_DB_Connection_String" )
44
44
Optional <String > item ,
45
45
final ExecutionContext context ) {
46
46
47
47
// Item list
48
48
context .getLogger ().info ("Parameters are: " + request .getQueryParameters ());
49
- context .getLogger ().info ("String from the database is " + item .get ());
49
+ // context.getLogger().info("String from the database is " + item.get());
50
50
51
51
// Convert and display
52
52
if (!item .isPresent ()) {
You can’t perform that action at this time.
0 commit comments