Test Case Generator
Test Case Generator · Ações GPT
OpenAPI definition
PUT /api/v1/user/update/{userId}updateUserPUT /api/v1/team/add-useraddUserToTeamPOST /api/v1/vulnerability/scan/{projectId}scanProjectPOST /api/v1/user/sign-upregisterUserPOST /api/v1/user/sign-inauthenticateUserPOST /api/v1/team/createcreateTeamPOST /api/v1/project/createcreateProjectPOST /api/v1/licence/scan/{projectId}scanProject_1POST /api/v1/case-generator/createcreateTeam_1GET /api/v1/user/get-one/{userId}getUserGET /api/v1/user/get-allgetAllUsersGET /api/v1/team/team-dashboardgetDashboardGET /api/v1/team/get/{projectId}getTeamGET /api/v1/team/get-onegetMyTeamGET /api/v1/team/get-allgetAllTeamsGET /api/v1/project/{projectId}getProjectByIdGET /api/v1/project/get-allgetAllProjectsGET /api/v1/case-generator/privacy-policycreateTeam_2DELETE /api/v1/team/remove-userremoveUserFromTeamDELETE /api/v1/project/delete/{projectId}deleteProject
Esquema API original
{
"openapi": "3.0.1",
"info": {
"title": "OpenAPI definition",
"version": "v0"
},
"servers": [
{
"url": "https://api.dependuck.dev",
"description": "Generated server url"
}
],
"paths": {
"/api/v1/user/update/{userId}": {
"put": {
"tags": [
"user-controller"
],
"operationId": "updateUser",
"parameters": [
{
"name": "userId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserDTO"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/UserDTO"
}
}
}
}
}
}
},
"/api/v1/team/add-user": {
"put": {
"tags": [
"team-controller"
],
"operationId": "addUserToTeam",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TeamUserDTO"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/TeamDTO"
}
}
}
}
}
}
},
"/api/v1/vulnerability/scan/{projectId}": {
"post": {
"tags": [
"vulnerability-controller"
],
"operationId": "scanProject",
"parameters": [
{
"name": "projectId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/DependencyDTO"
}
}
}
}
}
}
}
},
"/api/v1/user/sign-up": {
"post": {
"tags": [
"user-controller"
],
"operationId": "registerUser",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SignUpUserDTO"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/api/v1/user/sign-in": {
"post": {
"tags": [
"user-controller"
],
"operationId": "authenticateUser",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginUserDTO"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/api/v1/team/create": {
"post": {
"tags": [
"team-controller"
],
"operationId": "createTeam",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TeamDTO"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/TeamDTO"
}
}
}
}
}
}
},
"/api/v1/project/create": {
"post": {
"tags": [
"project-controller"
],
"operationId": "createProject",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProjectDTO"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/ProjectDTO"
}
}
}
}
}
}
},
"/api/v1/licence/scan/{projectId}": {
"post": {
"tags": [
"licence-controller"
],
"operationId": "scanProject_1",
"parameters": [
{
"name": "projectId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/DependencyDTO"
}
}
}
}
}
}
}
},
"/api/v1/case-generator/create": {
"post": {
"tags": [
"generator-controller"
],
"operationId": "createTeam_1",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PageRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
"/api/v1/user/get-one/{userId}": {
"get": {
"tags": [
"user-controller"
],
"operationId": "getUser",
"parameters": [
{
"name": "userId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/UserDTO"
}
}
}
}
}
}
},
"/api/v1/user/get-all": {
"get": {
"tags": [
"user-controller"
],
"operationId": "getAllUsers",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserDTO"
}
}
}
}
}
}
}
},
"/api/v1/team/team-dashboard": {
"get": {
"tags": [
"team-controller"
],
"operationId": "getDashboard",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/DashboardDTO"
}
}
}
}
}
}
},
"/api/v1/team/get/{projectId}": {
"get": {
"tags": [
"team-controller"
],
"operationId": "getTeam",
"parameters": [],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/TeamDTO"
}
}
}
}
}
}
},
"/api/v1/team/get-one": {
"get": {
"tags": [
"team-controller"
],
"operationId": "getMyTeam",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/TeamDTO"
}
}
}
}
}
}
},
"/api/v1/team/get-all": {
"get": {
"tags": [
"team-controller"
],
"operationId": "getAllTeams",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TeamDTO"
}
}
}
}
}
}
}
},
"/api/v1/project/{projectId}": {
"get": {
"tags": [
"project-controller"
],
"operationId": "getProjectById",
"parameters": [
{
"name": "projectId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/ProjectDTO"
}
}
}
}
}
}
},
"/api/v1/project/get-all": {
"get": {
"tags": [
"project-controller"
],
"operationId": "getAllProjects",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProjectDTO"
}
}
}
}
}
}
}
},
"/api/v1/case-generator/privacy-policy": {
"get": {
"tags": [
"generator-controller"
],
"operationId": "createTeam_2",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/api/v1/team/remove-user": {
"delete": {
"tags": [
"team-controller"
],
"operationId": "removeUserFromTeam",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TeamUserDTO"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/TeamDTO"
}
}
}
}
}
}
},
"/api/v1/project/delete/{projectId}": {
"delete": {
"tags": [
"project-controller"
],
"operationId": "deleteProject",
"parameters": [
{
"name": "projectId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
}
},
"components": {
"schemas": {
"UserDTO": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"userName": {
"type": "string"
},
"email": {
"type": "string"
},
"teamId": {
"type": "integer",
"format": "int32"
},
"roles": {
"uniqueItems": true,
"type": "array",
"items": {
"type": "string"
}
}
}
},
"TeamUserDTO": {
"required": [
"teamId",
"userId"
],
"type": "object",
"properties": {
"teamId": {
"type": "integer",
"format": "int32"
},
"userId": {
"type": "integer",
"format": "int32"
}
}
},
"DependencyDTO": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"vulnerabilities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VulnerabilityDTO"
}
},
"licence": {
"type": "string"
},
"direct": {
"type": "boolean"
}
}
},
"ProjectDTO": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"teamId": {
"type": "integer",
"format": "int32"
},
"userId": {
"type": "integer",
"format": "int32"
},
"notificationEmail": {
"type": "string"
},
"dependencyList": {
"type": "array",
"items": {
"$ref": "#/components/schemas/DependencyDTO"
}
}
}
},
"TeamDTO": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"name": {
"type": "string"
},
"projectList": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProjectDTO"
}
}
}
},
"VulnerabilityDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"summary": {
"type": "string"
},
"severity": {
"type": "string"
},
"fixedIn": {
"type": "string"
}
}
},
"SignUpUserDTO": {
"required": [
"email",
"password",
"username"
],
"type": "object",
"properties": {
"username": {
"maxLength": 20,
"minLength": 3,
"type": "string"
},
"email": {
"maxLength": 50,
"minLength": 0,
"type": "string"
},
"role": {
"uniqueItems": true,
"type": "array",
"items": {
"type": "string"
}
},
"password": {
"maxLength": 40,
"minLength": 6,
"type": "string"
}
}
},
"LoginUserDTO": {
"required": [
"password",
"username"
],
"type": "object",
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
}
}
},
"PageRequest": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
}
},
"DashboardDTO": {
"type": "object",
"properties": {
"numberOfProjects": {
"type": "integer",
"format": "int32"
},
"numberOfDockerImages": {
"type": "integer",
"format": "int32"
},
"numberOfVulnerabilities": {
"type": "integer",
"format": "int32"
},
"numberOfHighSeverityVulnerabilities": {
"type": "integer",
"format": "int32"
}
}
}
}
}
}