Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
312 changes: 0 additions & 312 deletions docs/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,115 +297,6 @@ const docTemplate = `{
}
}
},
"/api/package/{ecosystem}/{name}": {
"get": {
"description": "Returns enriched package metadata. URL-encode scoped names (e.g. @scope/name -\u003e %40scope%2Fname).",
"produces": [
"application/json"
],
"tags": [
"api"
],
"summary": "Get package metadata",
"parameters": [
{
"type": "string",
"description": "Ecosystem",
"name": "ecosystem",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Package name",
"name": "name",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/server.PackageResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "string"
}
},
"404": {
"description": "Not Found",
"schema": {
"type": "string"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "string"
}
}
}
}
},
"/api/package/{ecosystem}/{name}/{version}": {
"get": {
"description": "Returns enriched package+version metadata and vulnerability data.",
"produces": [
"application/json"
],
"tags": [
"api"
],
"summary": "Get version metadata and vulnerabilities",
"parameters": [
{
"type": "string",
"description": "Ecosystem",
"name": "ecosystem",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Package name",
"name": "name",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Version",
"name": "version",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/server.EnrichmentResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "string"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "string"
}
}
}
}
},
"/api/packages": {
"get": {
"produces": [
Expand Down Expand Up @@ -505,108 +396,6 @@ const docTemplate = `{
}
}
},
"/api/vulns/{ecosystem}/{name}": {
"get": {
"description": "Returns vulnerabilities for a package across versions, or for a specific version if provided.",
"produces": [
"application/json"
],
"tags": [
"api"
],
"summary": "Get vulnerabilities for a package or version",
"parameters": [
{
"type": "string",
"description": "Ecosystem",
"name": "ecosystem",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Package name",
"name": "name",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/server.VulnsResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "string"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "string"
}
}
}
}
},
"/api/vulns/{ecosystem}/{name}/{version}": {
"get": {
"description": "Returns vulnerabilities for a package across versions, or for a specific version if provided.",
"produces": [
"application/json"
],
"tags": [
"api"
],
"summary": "Get vulnerabilities for a package or version",
"parameters": [
{
"type": "string",
"description": "Ecosystem",
"name": "ecosystem",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Package name",
"name": "name",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Version",
"name": "version",
"in": "path"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/server.VulnsResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "string"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "string"
}
}
}
}
},
"/health": {
"get": {
"produces": [
Expand Down Expand Up @@ -715,29 +504,6 @@ const docTemplate = `{
}
}
},
"server.EnrichmentResponse": {
"type": "object",
"properties": {
"is_outdated": {
"type": "boolean"
},
"license_category": {
"type": "string"
},
"package": {
"$ref": "#/definitions/server.PackageResponse"
},
"version": {
"$ref": "#/definitions/server.VersionResponse"
},
"vulnerabilities": {
"type": "array",
"items": {
"$ref": "#/definitions/server.VulnResponse"
}
}
}
},
"server.OutdatedPackage": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -949,84 +715,6 @@ const docTemplate = `{
"type": "integer"
}
}
},
"server.VersionResponse": {
"type": "object",
"properties": {
"ecosystem": {
"type": "string"
},
"integrity": {
"type": "string"
},
"is_outdated": {
"type": "boolean"
},
"license": {
"type": "string"
},
"name": {
"type": "string"
},
"published_at": {
"type": "string"
},
"version": {
"type": "string"
},
"yanked": {
"type": "boolean"
}
}
},
"server.VulnResponse": {
"type": "object",
"properties": {
"cvss_score": {
"type": "number"
},
"fixed_version": {
"type": "string"
},
"id": {
"type": "string"
},
"references": {
"type": "array",
"items": {
"type": "string"
}
},
"severity": {
"type": "string"
},
"summary": {
"type": "string"
}
}
},
"server.VulnsResponse": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"ecosystem": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"vulnerabilities": {
"type": "array",
"items": {
"$ref": "#/definitions/server.VulnResponse"
}
}
}
}
}
}`
Expand Down
Loading