Navigation Menu

Skip to content

Commit

Permalink
minor documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
vinogradoff committed Jan 10, 2022
1 parent 9e9a6b9 commit 8b4d09e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -13,7 +13,7 @@

@RestController
@RequestMapping("/api")
@Api(value = "Managing test data", description = "Managing test data")
@Api(value = "Managing test data", description = "Managing test data: a dataset can contain multiple values under a given key.")
public class TestDataController {

@Autowired
Expand All @@ -29,7 +29,7 @@ public void saveData(@PathVariable @ApiParam(value = "dataset", example = "mySer
String dataset,
@PathVariable @ApiParam(value = "key", example = "active user", required = true)
String key,
@RequestParam @ApiParam(value = "value", example = "demo@acme.com", required = true)
@RequestParam @ApiParam(value = "value to be added under the key", example = "demo@acme.com", required = true)
String value) {
var actualDict = repo.getOrDefault(dataset, new HashMap<>());
var actualValue = actualDict.getOrDefault(key, new ArrayList<>());
Expand Down

0 comments on commit 8b4d09e

Please sign in to comment.