Java | CSharp |
---|---|
comming soon ! |
NOTE : Colectica Portal with Swagger API enabled are required to use these examples.
- Download the JDK 7 or higher here
- Download Maven here
- locate the swagger.json file
- locate your Colectica Portal directory
- execute the following commands
cd ColecticaPortal;
colectica.portal.exe
cd ColecticaPortal;
./colectica.portal.exe
git clone https://github.com/swagger-api/swagger-codegen;
cd swagger-codegen;
mvn clean package;
java -jar swagger-codegen-cli.jar generate -i http://localhost:5000/swagger/v1/swagger.json -l java -o c:\YourTargetJavaFolder;
java -jar swagger-codegen-cli.jar generate -i http://localhost:5000/swagger/v1/swagger.json -l csharp -o c:\YourTargetCSharpFolder
Or download from maven here and run :
java -jar swagger-codegen-cli.jar generate -i http://localhost:5000/swagger/v1/swagger.json -l java -o c:\YourTargetJavaFolder;
java -jar swagger-codegen-cli.jar generate -i http://localhost:5000/swagger/v1/swagger.json -l csharp -o c:\YourTargetCSharpFolder
- Open Visual Studio
- Create a new project .NetFramework library
- Add the folder Colectica.RestClientV1 to the folder of the new project
- Build the .dll file
- Open your favorite Java IDE
- Import the Java/swagger Folder in your project
- Export your project as a .jar file
- Add the reference of the dll to your client project via project --> Add ---> reference