Added basic outline

This commit is contained in:
Marvin Scham
2023-05-20 05:51:51 +02:00
parent c213fc3f71
commit 1143097aee
25 changed files with 171 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
package de.rwu.easydrop.api.client;
import de.rwu.easydrop.api.dto.ProductDTO;
/**
* Universal interface to implement concrete APIs on.
*/
public interface DataSource {
/**
* Retrieves product info from the data source.
*
* @param productId Identifier
* @return ProductDTO
*/
ProductDTO getProductById(String productId);
/**
* Breaks the connection after specified time.
*
* @param timeoutSeconds Seconds to time out after
*/
void setConnectionTimeout(int timeoutSeconds);
}

View File

@@ -0,0 +1,6 @@
/**
* API client connectors for interaction with external data sources.
*
* @since 0.1.0
*/
package de.rwu.easydrop.api.client;