Skip to content
Merged
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
307 changes: 0 additions & 307 deletions cmd/laas/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -844,218 +844,6 @@ const docTemplate = `{
}
}
},
"/obligation_maps/license/{id}": {
"get": {
"security": [
{
"ApiKeyAuth": [],
"{}": []
}
],
"description": "Get obligation maps for a given license id",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Obligations"
],
"summary": "Get maps for a license",
"operationId": "GetObligationMapByLicenseId",
"parameters": [
{
"type": "string",
"description": "id of the license",
"name": "license",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/models.ObligationMapResponse"
}
},
"404": {
"description": "No license with given id found",
"schema": {
"$ref": "#/definitions/models.LicenseError"
}
}
}
}
},
"/obligation_maps/obligation/{id}": {
"get": {
"security": [
{
"ApiKeyAuth": [],
"{}": []
}
],
"description": "Get obligation maps for a given obligation id",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Obligations"
],
"summary": "Get maps for an obligation",
"operationId": "GetObligationMapByObligationId",
"parameters": [
{
"type": "string",
"description": "Id of the obligation",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/models.ObligationMapResponse"
}
},
"404": {
"description": "No obligation with given id found",
"schema": {
"$ref": "#/definitions/models.LicenseError"
}
}
}
}
},
"/obligation_maps/obligation/{id}/license": {
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Replaces the license list of an obligation id with the given list in the obligation map.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Obligations"
],
"summary": "Change license list",
"operationId": "UpdateLicenseInObligationMap",
"parameters": [
{
"type": "string",
"description": "Id of the obligation",
"name": "id",
"in": "path",
"required": true
},
{
"description": "Ids of the licenses to be in map",
"name": "Ids",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.LicenseListInput"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/models.ObligationMapResponse"
}
},
"400": {
"description": "Invalid json body",
"schema": {
"$ref": "#/definitions/models.LicenseError"
}
},
"404": {
"description": "No license or obligation found.",
"schema": {
"$ref": "#/definitions/models.LicenseError"
}
}
}
},
"patch": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Add or remove licenses from obligation map for a given obligation id",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Obligations"
],
"summary": "Add or remove licenses from obligation map",
"operationId": "PatchObligationMap",
"parameters": [
{
"type": "string",
"description": "Id of the obligation",
"name": "id",
"in": "path",
"required": true
},
{
"description": "License ids with action",
"name": "license_maps",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.LicenseMapInput"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/models.ObligationMapResponse"
}
},
"400": {
"description": "Invalid json body",
"schema": {
"$ref": "#/definitions/models.LicenseError"
}
},
"404": {
"description": "No license or obligation found.",
"schema": {
"$ref": "#/definitions/models.LicenseError"
}
},
"500": {
"description": "Failure to insert new maps",
"schema": {
"$ref": "#/definitions/models.LicenseError"
}
}
}
}
},
"/obligations": {
"get": {
"security": [
Expand Down Expand Up @@ -2903,41 +2691,6 @@ const docTemplate = `{
}
}
},
"models.LicenseListInput": {
"type": "object",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "object"
}
}
}
},
"models.LicenseMapElement": {
"type": "object",
"properties": {
"add": {
"type": "boolean",
"example": true
},
"id": {
"type": "string",
"example": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
}
}
},
"models.LicenseMapInput": {
"type": "object",
"properties": {
"map": {
"type": "array",
"items": {
"$ref": "#/definitions/models.LicenseMapElement"
}
}
}
},
"models.LicensePreview": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3290,66 +3043,6 @@ const docTemplate = `{
}
}
},
"models.ObligationMapLicenseFormat": {
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
},
"shortname": {
"type": "string",
"example": "MIT"
}
}
},
"models.ObligationMapResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/models.ObligationMapUser"
}
},
"paginationmeta": {
"$ref": "#/definitions/models.PaginationMeta"
},
"status": {
"type": "integer",
"example": 200
}
}
},
"models.ObligationMapUser": {
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
},
"licenses": {
"type": "array",
"items": {
"$ref": "#/definitions/models.ObligationMapLicenseFormat"
}
},
"topic": {
"type": "string",
"example": "copyleft"
},
"type": {
"type": "string",
"enum": [
"obligation",
"restriction",
"risk",
"right"
],
"example": "obligation"
}
}
},
"models.ObligationPreview": {
"type": "object",
"properties": {
Expand Down
Loading
Loading