chatto
chatto copied to clipboard
feat: initial stab at a swagger spec for extension server
Ok, I have an initial swagger spec that we can use to generate server implementations for multiple languages. https://github.com/jaimeteb/chatto/issues/24
View the Swagger Doc here: https://app.swaggerhub.com/apis/ryancurrah/chatto-extension/1.0.0
Generated server stubs:
Codecov Report
Merging #25 (9812bda) into master (55946a7) will not change coverage. The diff coverage is
n/a.
@@ Coverage Diff @@
## master #25 +/- ##
=======================================
Coverage 58.39% 58.39%
=======================================
Files 17 17
Lines 834 834
=======================================
Hits 487 487
Misses 282 282
Partials 65 65
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 55946a7...9812bda. Read the comment docs.
I hand wrote it in combination with the online editor https://editor.swagger.io/ and the docs https://swagger.io/docs/specification/about/.
Usage...
brew install swagger-codegen
brew tap adoptopenjdk/openjdk
brew install --cask adoptopenjdk/openjdk/adoptopenjdk8
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
export PATH=${JAVA_HOME}/bin:$PATH
swagger-codegen generate -i .swagger/extension-server-swagger.yaml -l go-server -o go_server/
swagger-codegen generate -i .swagger/extension-server-swagger.yaml -l python-flask -o python_server/