Skip to content

Commit

Permalink
Update index.js (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain Gabilan committed Nov 22, 2023
1 parent 68a0bd9 commit df34627
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions services/docs/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,29 +197,35 @@ module.exports = class DocsService extends CampsiService {
handlers.putDoc
);
this.router.putAsync(
/* #swagger.tags = ['DOCSERVICE'],
#swagger.summary = 'DOCS_PUT_RESOURCE_ID_SUMMARY'
#swagger.parameters['id']={
/*
#swagger.tags = ['DOCSERVICE'],
#swagger.security = [{
"bearerAuth": []
}]
#swagger.summary = 'DOCS_PUT_RESOURCE_ID_SUMMARY'
#swagger.parameters['id'] = {
in: 'path',
description: "DOCS_PUT_ID_PARAM_DESCRIPTION"
}
#swagger.requestBody = {
required: true,
}
#swagger.requestBody = {
required: true,
content: {
"application/json": {
schema: { $ref: "DOCS_WRITE_SCHEMA" }
}
"application/json": {
schema: { $ref: "DOCS_PUT_WRITE_SCHEMA" }
}
}
}
#swagger.responses[200] = {
}
#swagger.responses[200] = {
description: "DOCS_PUT_RESPONSE_DESCRIPTION",
content: {
"application/json": {
schema:{
$ref: "DOCS_RESPONSE_SCHEMA"
}
"application/json": {
schema:{
$ref: "DOCS_PUT_RESPONSE_SCHEMA"
}
}
}
} */
}
*/
'/:resource/:id',
validateWriteAccess,
handlers.putDoc
Expand Down

0 comments on commit df34627

Please sign in to comment.