wildduck/lib/api
NickOvt ea24b9328b
feat(apidocs): Autogenerate OpenAPI docs ZMS-100 (#552)
* api.js added endpoint for generating openapi docs. added new info to one route in mailboxes.js and messages.js files so that the api docs generation can be done at all

* try to first generate json representation of the api docs

* add initial Joi Object parsing

* api.js make generation dynamic. messages.js add schemas from separate file. messages-schemas.js used for messages endpoint schemas

* add additions to schemas. Add new schemas to messages.js and also add response object there. Add response object parsing functionality to api.js

* add initial openapi doc yml file generation

* remove manual yaml parsing with js-yaml JSON -> YAML parsing

* fix replaceWithRefs and parseComponentsDecoupled functions, refactor, remove unnecessary comments and logs

* add support for another endpoint

* move big code from api.js to tools

* fix array type representation, fix response objects, add necessary data and changes to endpoints

* redo include logic into exclude login

* fix api generation in tools.js to accomodate new naming of objects

* fix messages.js, add structuredClone check in tools.js

* fix structured clone definition

* add one endpoint in messages.js to the api generation

* messages.js add one more endpoint to API generation

* add response to prev commit. Add new endpoint to API generation. Archive message and archive messages

* finish with post endpoints in messages.js

* added general request and response schemas. Also added req and res schemas for messages

* add multiple GET endpoints to API generation and changed them to new design. Use general schemas made earlier

* fix incorrect import of successRes

* fix mailboxes.js

* refactor general-schemas.js. Fix searchSchema in messages.js. Mailboxes.js fix response

* tools.js rename methodObj in API generation to operationObj

* tools.js api generation remove string fallbacks

* messages.js finish with GET endpoints, addition to API doc generation

* for openApi doc generation use JSON now instead of YAML
2023-11-10 17:55:16 +02:00
..
2fa Upgraded to Restify v9. Removed next() calls. 2022-11-24 12:26:10 +02:00
acme.js Fixed ACME renewals 2023-01-09 11:58:27 +02:00
addresses.js Upgraded to Restify v9. Removed next() calls. 2022-11-24 12:26:10 +02:00
asps.js Upgraded to Restify v9. Removed next() calls. 2022-11-24 12:26:10 +02:00
audit.js Upgraded to Restify v9. Removed next() calls. 2022-11-24 12:26:10 +02:00
auth.js Updated username validation schema 2023-08-25 22:55:02 +03:00
autoreply.js Upgraded to Restify v9. Removed next() calls. 2022-11-24 12:26:10 +02:00
certs.js Upgraded to Restify v9. Removed next() calls. 2022-11-24 12:26:10 +02:00
dkim.js Upgraded to Restify v9. Removed next() calls. 2022-11-24 12:26:10 +02:00
domainaccess.js Upgraded to Restify v9. Removed next() calls. 2022-11-24 12:26:10 +02:00
domainaliases.js Added restifyError handler 2022-11-24 13:21:10 +02:00
filters.js fix(api-filters): Return valid action.mailbox value for a filter object 2023-10-16 12:21:16 +03:00
mailboxes.js feat(apidocs): Autogenerate OpenAPI docs ZMS-100 (#552) 2023-11-10 17:55:16 +02:00
messages.js feat(apidocs): Autogenerate OpenAPI docs ZMS-100 (#552) 2023-11-10 17:55:16 +02:00
settings.js Upgraded to Restify v9. Removed next() calls. 2022-11-24 12:26:10 +02:00
storage.js feat(storage): Added cid property to storage files (#502) 2023-09-21 12:37:35 +03:00
submit.js fix(attachments): Added contentDisposition property for attachments 2023-10-12 15:23:11 +03:00
updates.js Upgraded to Restify v9. Removed next() calls. 2022-11-24 12:26:10 +02:00
users.js Updated username validation schema 2023-08-25 22:55:02 +03:00
webhooks.js Upgraded to Restify v9. Removed next() calls. 2022-11-24 12:26:10 +02:00