The `ServiceSpecificationFetcher` is a Java-based application designed to fetch hierarchical data from RESTful APIs. It starts with a given `ServiceSpecification` UUID and recursively retrieves related `ServiceSpecification` and `ResourceSpecification` objects, saving each as JSON files in a structured directory hierarchy. Attachments and LCM rule specifications are also fetched and saved, ensuring all related data is organized and stored appropriately.
The `org.etsi.osl.util.service.specification.export` is a Java-based application designed to fetch hierarchical data from RESTful APIs. It starts with a given `ServiceSpecification` UUID and recursively retrieves related `ServiceSpecification` and `ResourceSpecification` objects, saving each as JSON files in a structured directory hierarchy. Attachments and LCM rule specifications are also fetched and saved, ensuring all related data is organized and stored appropriately.
## Prerequisites
- Java 17+
- Maven
- Docker (optional, for containerized deployment)
- Docker
## Configuration
The application requires a configuration file named `config.properties` with the following properties:
The application requires a configuration file with OpenSlice instance details, named `config.properties` with the following properties:
To run the project, execute the following command:
To run the Docker container that exports the given Service Specification, use the following command, ensuring to mount the configuration file and target data folder: