directus-extension-api-docs 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -22,7 +22,7 @@ Ref: https://github.com/directus/directus
22
22
 
23
23
  For include you custom endpoints.
24
24
 
25
- Create a `oas.json` file under `/extensions/endpoints` folder.
25
+ Create a `oasconfig.json` file under `/extensions/endpoints` folder.
26
26
 
27
27
  Example below:
28
28
 
@@ -109,6 +109,10 @@ module.exports = {
109
109
  id,
110
110
  handler: function registerEndpoint(router, { services, exceptions, logger }) {
111
111
 
112
+ router.post('/my-endpoint-not-validated', async (req, res, next) => {
113
+ ...
114
+ });
115
+
112
116
  validate(router, [`/${id}/my-endpoint`]);
113
117
 
114
118
  router.post('/my-endpoint', async (req, res, next) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directus-extension-api-docs",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "directus extension for swagger interface and custom endpoints definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",