Skip to content

Commit

Permalink
Rename locale to pLocale in the client
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus-87 committed Mar 13, 2024
1 parent 9e0b50c commit 0da2d30
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ This version changes both the `groupId` and `artifactId` of the contained maven

- Several missing `equals` & `hashCode` methods are added to model classes
- Order of a website's root webpages is retained
- Renamed parameter `locale` to `pLocale` in the client

## [8.0.3](https://github.com/dbmdz/cudami/releases/tag/8.0.3) – 2024-01-19

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public I getByUuidAndLocale(UUID uuid, Locale locale) throws TechnicalException

public I getByUuidAndLocale(UUID uuid, String locale) throws TechnicalException {
try {
return doGetRequestForObject(String.format(baseEndpoint + "/%s?locale=%s", uuid, locale));
return doGetRequestForObject(String.format(baseEndpoint + "/%s?pLocale=%s", uuid, locale));
} catch (ResourceNotFoundException e) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void testGetByUuidAndLocale() throws Exception {
Locale locale = Locale.GERMAN;
client.getByUuidAndLocale(uuid, locale);

verifyHttpRequestByMethodAndRelativeURL("get", "/" + uuid + "?locale=" + locale);
verifyHttpRequestByMethodAndRelativeURL("get", "/" + uuid + "?pLocale=" + locale);
}

@Test
Expand All @@ -75,7 +75,7 @@ public void testGetByUuidAndLocaleAsString() throws Exception {
String locale = Locale.GERMAN.toString();
client.getByUuidAndLocale(uuid, locale);

verifyHttpRequestByMethodAndRelativeURL("get", "/" + uuid + "?locale=" + locale);
verifyHttpRequestByMethodAndRelativeURL("get", "/" + uuid + "?pLocale=" + locale);
}

@Test
Expand Down

0 comments on commit 0da2d30

Please sign in to comment.