Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/krusty84/filesystem_oslc_connector


https://github.com/krusty84/filesystem_oslc_connector

integration integration-oslc lyo-designer oslc oslc-query oslc-samples

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

The small, demo project - it represents folder contents via OSLC specification, this adapter (connector) was generated based on filesystem_connector_model model
plus some pieces of code:

Find /***krusty84* , or <%--krusty84*, for identyfing my pieces of code

Find the **readme.txt** files, for getting some extra comments about something in this project

In this project was added the following classes:
- **FileSystemConnect_Helper.java** - the various methods to communicate with file system
- **GlobalConstantsVariables.java**

In **RestDelegate.java:**

**public static String pathToRootFolder="C:\\Temp";**
you may change the path to the exposing folder

The web-app port: **8181**

In Eclipse, create the new Run configuration for Maven Build, Goals: **clean install jetty:run**

This connector was created based on the following project:
https://github.com/OSLC/lyo-adaptor-sample-modelling/

Create System Variable: **LOG_PATH** with path to folder for log files

## Prerequisites

**Eclipse 2022-03 (4.23.0) or 2022-12 (4.26.0)** - Eclipse IDE for Enterprise Java and Web Developers

**Eclipse Lyo Designer 5.0.0**

**Apache Maven 3.8.6**

**JDK 11** - https://jdk.java.net/archive

## Tips & Trick
In some cases embedded Swager doesn't working (some troubles with loading swagger*.js), for resolve it:
copy all files from: ...\filesystem-oslc-connector-webapp\target\swagger-ui\META-INF\resources\webjars\swagger-ui\3.52.5\ to the ...\filesystem-oslc-connector-webapp\src\main\webapp\swagger-ui\dist\