Skip to content

Commit

Permalink
Merge branch 'master' into deployment-enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
yhtMinceraft1010X committed Oct 8, 2023
2 parents fa3138e + 5ee526e commit c4d8c73
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 4 deletions.
6 changes: 3 additions & 3 deletions services/question-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"scripts": {
"build": "yarn run swagger-autogen && tsc",
"start": "yarn run swagger-autogen && ts-node src/app.ts",
"dev": "yarn run swagger-autogen && nodemon src/app.ts",
"start:prod": "yarn build && node ./dist/app.js",
"start": "yarn run swagger-autogen && dotenv -e ../../.env ts-node src/app.ts",
"dev": "yarn run swagger-autogen && dotenv -e ../../.env nodemon src/app.ts",
"start:prod": "yarn build && dotenv -e ../../.env node ./dist/app.js",
"swagger-autogen": "ts-node swagger-doc-gen.ts"
},
"dependencies": {
Expand Down
72 changes: 71 additions & 1 deletion services/question-service/swagger-output.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
}
},
"put": {
"description": "",
"description": "Update a question.",
"parameters": [
{
"name": "id",
Expand All @@ -236,6 +236,76 @@
"schema": {
"type": "string"
}
},
{
"name": "title",
"description": "Title of the question.",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "content",
"description": "Content of the question.",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "topics",
"description": "Array of topics of the question.",
"in": "query",
"schema": {
"type": "array"
}
},
{
"name": "difficulty",
"description": "Difficulty of the question.",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "testCasesInputs",
"description": "Array of test case inputs.",
"items": {
"type": "string"
},
"in": "query",
"schema": {
"type": "array"
}
},
{
"name": "testCasesOutputs",
"description": "Array of test case outputs.",
"items": {
"type": "string"
},
"in": "query",
"schema": {
"type": "array"
}
},
{
"name": "defaultCode",
"description": "Object of default code for each language.",
"in": "query",
"schema": {
"type": "object"
}
},
{
"name": "solution",
"description": "Object of solution code for each language.",
"in": "query",
"schema": {
"type": "object"
}
}
],
"responses": {
Expand Down

0 comments on commit c4d8c73

Please sign in to comment.