zotero / translation-server

A Node.js-based server to run Zotero translators
Other
123 stars 52 forks source link

Add OpenApi spec and Swagger documentation #131

Open mvolz opened 3 years ago

mvolz commented 3 years ago

Add Swagger documentation to the root http://127.0.0.1:1969/?doc with OpenApi 3.0 specification at http://127.0.0.1:1969/?spec

Addresses #76

Change-Id: Ide7b45e7dca90b3ccbbf8141358a66f8dc7b1187

mvolz commented 3 years ago

This is largely copy pasta from https://github.com/wikimedia/service-template-node - so there might be style issues and whatnot since - different repos! Let me know if there are any particular ways you'd like me to clean it up.

adomasven commented 3 years ago

We use tabs instead of spaces across Zotero source code, so at the very least that would be one thing to fix for the spec endpoint handler. Dan might have other comments.

mvolz commented 3 years ago

@dstillman any thoughts?