Skip to content

Commit fca1360

Browse files
Documented changes to the way that REST URLs are built and used
1 parent e110eed commit fca1360

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/de/samply/directory_sync_service/directory/rest/DirectoryApiRest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@
1717
* The DirectoryApiRest class provides an interface for interacting with the Directory service.
1818
* This class allows for fetching and updating biobank and collection information, managing star models,
1919
* and performing various validation and correction operations.
20+
*
2021
* It supports a mock mode for testing purposes, where no real Directory interactions are performed.
22+
*
23+
* Most methods will first try using a URL containing the country code, and If that fails, they will
24+
* use a URL without country code. This is because the inclusion of the country code is necessary when
25+
* synchronizing with a national node Directory, but not when synchronizing with the central Directory.
26+
* Both of these cases can occur: larger countries (e.g. DE) tend to have their own national node
27+
* Directories, but smaller countries (e.g. CY) use the central Directory.
2128
*/
2229
public class DirectoryApiRest extends DirectoryApi {
2330
private final DirectoryCallsRest directoryCallsRest;

0 commit comments

Comments
 (0)