Skip to content

Commit

Permalink
fix: added GET/sessions/:sessionId/vmap in schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Kajlid committed Jun 5, 2024
1 parent b62887c commit 5fe486f
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion api/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,24 @@ const schemas = {
404: BadRequestSchema("Session with ID: 'xxx-xxx-xxx-xxx' was not found"),
},
},
"GET/sessions/:sessionId/vmap": {
description: "Gets the VMAP XML created for a specific session",
tags: ["sessions"],
params: {
sessionId: {
type: "string",
description: "The ID for the session. ",
},
},
response: {
200: {
description: "VMAP XML",
type: "string",
},

404: BadRequestSchema("Session with ID: 'xxx-xxx-xxx-xxx' was not found"),
},
},
"DELETE/sessions/:sessionId": {
description: "Deletes the given session",
tags: ["sessions"],
Expand Down Expand Up @@ -973,7 +991,6 @@ module.exports = (fastify, opt, next) => {
"/sessions/:sessionId/vmap",
{
schema: schemas["GET/sessions/:sessionId/vmap"],
tags: ["sessions/:sessionId"],
},
async (req, reply) => {
const sessionId = req.params.sessionId;
Expand Down

0 comments on commit 5fe486f

Please sign in to comment.