From 3a26aef3bbedf531f5ad77473dd0f4b47d0ff6b9 Mon Sep 17 00:00:00 2001
From: Heinrichs <Heinrichs@itc.rwth-aachen.de>
Date: Wed, 12 Apr 2023 09:33:19 +0200
Subject: [PATCH] Docs: How to generate API connectors

---
 README.md             | 4 ++++
 generateConnectors.sh | 6 ++++++
 2 files changed, 10 insertions(+)
 create mode 100644 generateConnectors.sh

diff --git a/README.md b/README.md
index c8535e5..5493324 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,10 @@ The API Client library for Vue TypeScript contains generated API connection clas
 ### Links
 Bundles the output of [CodeGen](https://git.rwth-aachen.de/coscine/backend/scripts/codegen).
 
+### Create API Connectors
+
+Use the `generateConnectors.sh` script when in a Coscine environment.
+
 ## 👥 Contributing
 
 As an open source plattform and project, we welcome contributions from our community in any form. You can do so by submitting bug reports or feature requests, or by directly contributing to Coscine's source code. To submit your contribution please follow our [Contributing Guideline](https://git.rwth-aachen.de/coscine/docs/public/wiki/-/blob/master/Contributing%20To%20Coscine.md).
diff --git a/generateConnectors.sh b/generateConnectors.sh
new file mode 100644
index 0000000..4ab5ad1
--- /dev/null
+++ b/generateConnectors.sh
@@ -0,0 +1,6 @@
+git clone https://git.rwth-aachen.de/coscine/backend/scripts/codegen.git
+dotnet run --project "codegen\src\CodeGen\CodeGen.csproj"
+cp -r Output/* src
+rm -rf Output
+rm codegen.jar
+rm -rf codegen
\ No newline at end of file
-- 
GitLab