组件许可证
查询组件许可证列表信息
基本信息
- Path:{{ host }} /cleansourcesca-community/license/component_detail/list
- Method:GET
请求参数
Headers
Body
| 参数名称 | 说明 | in | 是否必须 | 类型 | schema |
|---|---|---|---|---|---|
| componentId | 组件ID | body | true | string | |
| taskInstanceId | 任务实例ID | body | true | int64 |
响应数据
响应状态码
| 状态码 | 说明 | schema |
|---|---|---|
| 100000 | OK | CommonResult |
| 201 | Created | |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found | |
| 100005 | 系统异常 | |
| 120003 | 未找到任务执行实例 |
操作成功响应状态码:100000
错误码描述:
100005:系统异常!
120003:未找到任务执行实例
响应参数
| 参数名称 | 说明 | 类型 | schema |
|---|---|---|---|
| code | string | ||
| data | array | ComponentLicenseDetailResp | |
| message | string | ||
| success | boolean |
schema属性说明
ComponentLicenseDetailResp
| 参数名称 | 说明 | 类型 | schema |
|---|---|---|---|
| fullText | 许可证原文 | string | |
| licenseType | 许可证类型:宽松型(1)、弱传染型(2)、强传染型(3) | int32 | |
| spdxName | 许可证简称 | string |
成功响应示例
json
{
"code": "100000",
"message": "操作成功",
"data": [
{
"spdxName": "GPL-2.0-with-classpath-exception",
"fullText": "Terms of the GNU General Public License Version 2 with \"CLASSPATH\" EXCEPTION:\n---------------------------------------------------\nGNU GENERAL PUBLIC LICENSE\nVersion 2, June 1991\nCopyright (C) 1989, 1991 Free Software Foundation, Inc.\n51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,USA\nEveryone is permitted to copy and distribute verbatim copiesof this license document, but changing it is not allowed.\nPreamble\nThe licenses for most software are designed to take away your freedomto share and change it. By contrast, the GNU General Public License isintended to guarantee your freedom to share and change free software--tomake sure the software is free for all its users. This General PublicLicense applies to most of the Free Software Foundation's softwareand to any other program whose authors commit to using it. (Some otherFree Software Foundation software is covered by the GNU Lesser GeneralPublic License instead.) You can apply it to your programs, too.\nWhen we speak of free software, we are referring to freedom, not price.Our General Public Licenses are designed to make sure that you havethe freedom to distribute copies of free software (and charge forthis service if you wish), that you receive source code or can getit if you want it, that you can change the software or use pieces ofit in new free programs; and that you know you can do these things.\nTo protect your rights, we need to make restrictions that forbidanyone to deny you these rights or to ask you to surrender therights. These restrictions translate to certain responsibilities foryou if you distribute copies of the software, or if you modify it.\nFor example, if you distribute copies of such a program, whether gratisor for a fee, you must give the recipients all the rights that youhave. You must make sure that they, too, receive or can get the sourcecode. And you must show them these terms so they know their rights.\nWe protect your rights with two steps: (1) copyright thesoftware, and (2) offer you this license which gives you legalpermission to copy, distribute and/or modify the software.\nAlso, for each author's protection and ours, we want to makecertain that everyone understands that there is no warranty forthis free software. If the software is modified by someone elseand passed on, we want its recipients to know that what theyhave is not the original, so that any problems introduced byothers will not reflect on the original authors' reputations.\nFinally, any free program is threatened constantly by software patents.We wish to avoid the danger that redistributors of a free programwill individually obtain patent licenses, in effect making the programproprietary. To prevent this, we have made it clear that any patentmust be licensed for everyone's free use or not licensed at all.\nThe precise terms and conditions for copying,distribution and modification follow.\nTERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n0.This License applies to any program or other work which contains anotice placed by the copyright holder saying it may be distributedunder the terms of this General Public License. The \"Program\", below,refers to any such program or work, and a \"work based on the Program\"means either the Program or any derivative work under copyright law:that is to say, a work containing the Program or a portion of it,either verbatim or with modifications and/or translated into anotherlanguage. (Hereinafter, translation is included without limitationin the term \"modification\".) Each licensee is addressed as \"you\".\nActivities other than copying, distribution and modification arenot covered by this License; they are outside its scope. The actof running the Program is not restricted, and the output from theProgram is covered only if its contents constitute a work basedon the Program (independent of having been made by running theProgram). Whether that is true depends on what the Program does.\n\n1.You may copy and distribute verbatim copies of the Program's sourcecode as you receive it, in any medium, provided that you conspicuouslyand appropriately publish on each copy an appropriate copyright noticeand disclaimer of warranty; keep intact all the notices that refer tothis License and to the absence of any warranty; and give any otherrecipients of the Program a copy of this License along with the Program.\nYou may charge a fee for the physical act oftransferring a copy, and you may at your optionoffer warranty protection in exchange for a fee.\n\n2.You may modify your copy or copies of the Program or any portionof it, thus forming a work based on the Program, and copy anddistribute such modifications or work under the terms of Section1 above, provided that you also meet all of these conditions:\na)You must cause the modified files to carry prominent noticesstating that you changed the files and the date of any change.\nb)You must cause any work that you distribute or publish,that in whole or in part contains or is derived from theProgram or any part thereof, to be licensed as a whole at nocharge to all third parties under the terms of this License.\nc)If the modified program normally reads commands interactivelywhen run, you must cause it, when started running for suchinteractive use in the most ordinary way, to print or displayan announcement including an appropriate copyright notice anda notice that there is no warranty (or else, saying that youprovide a warranty) and that users may redistribute the programunder these conditions, and telling the user how to view a copyof this License. (Exception: if the Program itself is interactivebut does not normally print such an announcement, your workbased on the Program is not required to print an announcement.)\nThese requirements apply to the modified work as a whole. Ifidentifiable sections of that work are not derived from theProgram, and can be reasonably considered independent and separateworks in themselves, then this License, and its terms, do notapply to those sections when you distribute them as separateworks. But when you distribute the same sections as part of awhole which is a work based on the Program, the distributionof the whole must be on the terms of this License, whosepermissions for other licensees extend to the entire whole,and thus to each and every part regardless of who wrote it.\nThus, it is not the intent of this section to claim rights orcontest your rights to work written entirely by you; rather,the intent is to exercise the right to control the distributionof derivative or collective works based on the Program.\nIn addition, mere aggregation of another work not based onthe Program with the Program (or with a work based on theProgram) on a volume of a storage or distribution medium doesnot bring the other work under the scope of this License.\n3.You may copy and distribute the Program (or a work based on it,under Section 2) in object code or executable form under the terms ofSections 1 and 2 above provided that you also do one of the following:\na)Accompany it with the complete corresponding machine-readable sourcecode, which must be distributed under the terms of Sections 1 and2 above on a medium customarily used for software interchange; or,\nb)Accompany it with a written offer, valid for at least threeyears, to give any third party, for a charge no more than yourcost of physically performing source distribution, a completemachine-readable copy of the corresponding source code, tobe distributed under the terms of Sections 1 and 2 aboveon a medium customarily used for software interchange; or,\nc)Accompany it with the information you received as to the offerto distribute corresponding source code. (This alternativeis allowed only for noncommercial distribution and only ifyou received the program in object code or executable formwith such an offer, in accord with Subsection b above.)\nThe source code for a work means the preferred form of the workfor making modifications to it. For an executable work, completesource code means all the source code for all modules it contains,plus any associated interface definition files, plus the scriptsused to control compilation and installation of the executable.However, as a special exception, the source code distributedneed not include anything that is normally distributed (in eithersource or binary form) with the major components (compiler,kernel, and so on) of the operating system on which the executableruns, unless that component itself accompanies the executable.\nIf distribution of executable or object code is made by offeringaccess to copy from a designated place, then offering equivalentaccess to copy the source code from the same place counts asdistribution of the source code, even though third parties arenot compelled to copy the source along with the object code.\n4.You may not copy, modify, sublicense, or distribute the Programexcept as expressly provided under this License. Any attemptotherwise to copy, modify, sublicense or distribute the Programis void, and will automatically terminate your rights underthis License. However, parties who have received copies, orrights, from you under this License will not have their licensesterminated so long as such parties remain in full compliance.\n5.You are not required to accept this License, since you havenot signed it. However, nothing else grants you permission tomodify or distribute the Program or its derivative works. Theseactions are prohibited by law if you do not accept this License.Therefore, by modifying or distributing the Program (or anywork based on the Program), you indicate your acceptance of thisLicense to do so, and all its terms and conditions for copying,distributing or modifying the Program or works based on it.\n6.Each time you redistribute the Program (or any work based on theProgram), the recipient automatically receives a license from theoriginal licensor to copy, distribute or modify the Program subject tothese terms and conditions. You may not impose any further restrictionson the recipients' exercise of the rights granted herein. You are notresponsible for enforcing compliance by third parties to this License.\n7.If, as a consequence of a court judgment or allegation of patentinfringement or for any other reason (not limited to patent issues),conditions are imposed on you (whether by court order, agreementor otherwise) that contradict the conditions of this License,they do not excuse you from the conditions of this License. If youcannot distribute so as to satisfy simultaneously your obligationsunder this License and any other pertinent obligations, then as aconsequence you may not distribute the Program at all. For example,if a patent license would not permit royalty-free redistribution ofthe Program by all those who receive copies directly or indirectlythrough you, then the only way you could satisfy both it and thisLicense would be to refrain entirely from distribution of the Program.\nIf any portion of this section is held invalid orunenforceable under any particular circumstance, thebalance of the section is intended to apply and the sectionas a whole is intended to apply in other circumstances.\n\nIt is not the purpose of this section to induce you to infringeany patents or other property right claims or to contestvalidity of any such claims; this section has the sole purposeof protecting the integrity of the free software distributionsystem, which is implemented by public license practices. Manypeople have made generous contributions to the wide range ofsoftware distributed through that system in reliance on consistentapplication of that system; it is up to the author/donor todecide if he or she is willing to distribute software throughany other system and a licensee cannot impose that choice.\n\nThis section is intended to make thoroughly clear what isbelieved to be a consequence of the rest of this License.\n\n8.If the distribution and/or use of the Program is restricted incertain countries either by patents or by copyrighted interfaces,the original copyright holder who places the Program under thisLicense may add an explicit geographical distribution limitationexcluding those countries, so that distribution is permitted onlyin or among countries not thus excluded. In such case, this Licenseincorporates the limitation as if written in the body of this License.\n9.The Free Software Foundation may publish revised and/or newversions of the General Public License from time to time. Suchnew versions will be similar in spirit to the present version,but may differ in detail to address new problems or concerns.\nEach version is given a distinguishing version number. If theProgram specifies a version number of this License which appliesto it and \"any later version\", you have the option of followingthe terms and conditions either of that version or of any laterversion published by the Free Software Foundation. If the Programdoes not specify a version number of this License, you may chooseany version ever published by the Free Software Foundation.\n\n10.If you wish to incorporate parts of the Program into other freeprograms whose distribution conditions are different, write to theauthor to ask for permission. For software which is copyrighted by theFree Software Foundation, write to the Free Software Foundation; wesometimes make exceptions for this. Our decision will be guided by thetwo goals of preserving the free status of all derivatives of our freesoftware and of promoting the sharing and reuse of software generally.\nNO WARRANTY\n\n11.BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTYFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPTWHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHERPARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND,EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULARPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OFTHE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOUASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n12.IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITINGWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/ORREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FORDAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIALDAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM(INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDEREDINACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OFTHE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDEROR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\nEND OF TERMS AND CONDITIONS\nHow to Apply These Terms to Your New Programs\nIf you develop a new program, and you want it to beof the greatest possible use to the public, the bestway to achieve this is to make it free software whicheveryone can redistribute and change under these terms.\nTo do so, attach the following notices to the program. It is safestto attach them to the start of each source file to most effectivelyconvey the exclusion of warranty; and each file should have at leastthe \"copyright\" line and a pointer to where the full notice is found.\n\nCopyright (C)\nThis program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version2 of the License, or (at your option) any later version.\nThis program is distributed in the hope that it will beuseful, but WITHOUT ANY WARRANTY; without even the impliedwarranty of MERCHANTABILITY or FITNESS FOR A PARTICULARPURPOSE. See the GNU General Public License for more details.\nYou should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free Software Foundation,Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,USA.\nAlso add information on how tocontact you by electronic and paper mail.\nIf the program is interactive, make it output a shortnotice like this when it starts in an interactive mode:\nGnomovision version 69, Copyright (C) year name of authorGnomovision comes with ABSOLUTELY NO WARRANTY; for detailstype `show w'. This is free software, and you are welcome toredistribute it under certain conditions; type `show c' for details.\nThe hypothetical commands `show w' and `show c' should show theappropriate parts of the General Public License. Of course, the commandsyou use may be called something other than `show w' and `show c'; theycould even be mouse-clicks or menu items--whatever suits your program.\nYou should also get your employer (if you work as a programmer)or your school, if any, to sign a \"copyright disclaimer\" forthe program, if necessary. Here is a sample; alter the names:\nYoyodyne, Inc., hereby disclaims all copyright interest in the program`Gnomovision' (which makes passes at compilers) written by James Hacker.\n, 1 April 1989 Ty Coon, President of Vice\nThis General Public License does not permit incorporating your program intoproprietary programs.If your program is a subroutine library, you mayconsider it more useful to permit linking proprietary applications with thelibrary.If this is what you want to do, use the GNU Lesser GeneralPublic License instead of this License.\n\n\"CLASSPATH\" EXCEPTION TO THE GPL\n\nCertain source files distributed by Oracle America and/or its affiliates are\nsubject to the following clarification and special exception to the GPL, but\nonly where Oracle has expressly included in the particular source file's header\nthe words \"Oracle designates this particular file as subject to the \"Classpath\"\nexception as provided by Oracle in the LICENSE file that accompanied this code.\"\n\n Linking this library statically or dynamically with other modules is making\n a combined work based on this library. Thus, the terms and conditions of\n the GNU General Public License cover the whole combination.\n\n As a special exception, the copyright holders of this library give you\n permission to link this library with independent modules to produce an\n executable, regardless of the license terms of these independent modules,\n and to copy and distribute the resulting executable under terms of your\n choice, provided that you also meet, for each linked independent module,\n the terms and conditions of the license of that module. An independent\n module is a module which is not derived from or based on this library. If\n you modify this library, you may extend this exception to your version of\n the library, but you are not obligated to do so. If you do not wish to do\n so, delete this exception statement from your version.",
"licenseType": 3
},
{
"spdxName": "Common Development and Distribution License 1.0",
"fullText": null,
"licenseType": null
}
],
"success": true
}失败响应示例
json
{
"code": "100005",
"message": "系统异常!",
"data": null,
"success": false
}
{
"code": "120003",
"message": "未找到任务执行实例",
"data": null,
"success": false
}查询组件许可证详情
基本信息
- Path:{{ host }} /cleansourcesca-community/license/license_detail/get
- Method:GET
请求参数
Headers
Body
| 参数名称 | 说明 | in | 是否必须 | 类型 | schema |
|---|---|---|---|---|---|
| licenseName | 许可证名称 | body | true | string |
响应数据
响应状态码
| 状态码 | 说明 | schema |
|---|---|---|
| 100000 | OK | CommonResult |
| 201 | Created | |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found | |
| 100005 | 系统异常 | |
| 100004 | 参数值不能为空! |
操作成功响应状态码:100000
错误码描述:
100004:参数不能为空
100005:系统异常!
响应参数
| 参数名称 | 说明 | 类型 | schema |
|---|---|---|---|
| code | string | ||
| data | array | LicenseDetailDTO | |
| message | string | ||
| success | boolean |
schema属性说明
LicenseDetailDTO
| 参数名称 | 说明 | 类型 | schema |
|---|---|---|---|
| summary | 许可证概要 | string | |
| fullText | 许可证全文描述 | string | |
| licenseFullName | 许可证全名 | string | |
| limitationDataList | 许可证授权-禁止项 | array | LicenseAuthTermDTO |
| obligationDataList | 许可证授权-满足项 | array | LicenseAuthTermDTO |
| rightsDataList | 许可证授权-允许项 | array | LicenseAuthTermDTO |
| tagList | 许可证授权-标签 | array | LicenseTagDTO |
LicenseAuthTermDTO
| 参数名称 | 说明 | 类型 | schema |
|---|---|---|---|
| name | 名称 | string | |
| cnName | 中文名称 | string | |
| id | ID | string | |
| description | 描述 | string |
LicenseTagDTO
| 参数名称 | 说明 | 类型 | schema |
|---|---|---|---|
| id | 标签ID | string | |
| name | 名称 | string | |
| type | 类型 | string | |
| description | 描述 | string |
成功响应示例
json
{
"code": "100000",
"message": "操作成功",
"data": {
"id": 941,
"name": "PSF-2.0",
"spdx_name": "PSF-2.0",
"summary": "This is the PSF-2.0 license, which is part of the complete Python license text, but also used independently by some projects.",
"full_text": "PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2\n\n1. This LICENSE AGREEMENT is between the Python Software Foundation(\"PSF\"), and the Individual or Organization (\"Licensee\") accessing and otherwise using this software (\"Python\") in source or binary form and its associated documentation.\n\n2. Subject to the terms and conditions of this License Agreement, PSF herebygrants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,analyze, test, perform and/or display publicly, prepare derivative works,distribute, and otherwise use Python alone or in any derivative version,provided, however, that PSF's License Agreement and PSF's notice of copyright,i.e., \"Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation All Rights Reserved\" are retained in Python alone or in any derivative version prepared by Licensee.\n\n3. In the event Licensee prepares a derivative work that is based onor incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python.\n\n4. PSF is making Python available to Licensee on an \"AS IS\" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.\n\n5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.\n\n6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.\n\n7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.\n\n8. By copying, installing or otherwise using Python,Licensee agrees to be bound by the terms and conditions of this License Agreement.\n",
"rights_ids": [
{
"id": 18,
"name": "分发",
"cn_name": "分发",
"description": "可以分发原始的软件和修改后的软件(派生品)"
},
{
"id": 24,
"name": "修改",
"cn_name": "修改",
"description": "修改软件,生产衍生品的权利。"
},
{
"id": 77,
"name": "商业使用",
"cn_name": "商业使用",
"description": "软件及其衍生品是否可以用于商业目的:该条款允许用户将许可材料及其修改版本用于商业活动,包括销售、提供服务或其他盈利方式。允许商业使用能够激励开发者和企业基于原始材料进行创新,从而推动技术和产品的发展。确保在使用和销售这些材料时不违反许可证条款。"
}
],
"obligation_ids": [
{
"id": 20,
"name": "包含版权和许可证",
"cn_name": "包含版权和许可证",
"description": "原始的Copyright 和 License文件必须被保留。"
},
{
"id": 81,
"name": "列明修改",
"cn_name": "列明修改",
"description": "声明对软件所做的重大更改,如对软件的功能、结构、性能或用户体验等方面进行的显著修改,必须明确地声明这些更改"
}
],
"limitation_ids": [
{
"id": 19,
"name": "质量保证",
"cn_name": "质量保证",
"description": "对软件可能造成的损失,被授权者是否有权利向所有者追责。"
},
{
"id": 80,
"name": "使用商标",
"cn_name": "使用商标",
"description": "描述允许使用贡献者的姓名、商标或标志,这意味着软件或项目允许使用特定贡献者的姓名、商标或标志。贡献者通常指的是开发者、合作者或支持者。"
}
],
"tag_list": [],
"license_series": {
"license_series_name": "允许",
"license_series_id": 3
},
"creator": "",
"revisor": "root",
"create_time": null,
"update_time": "2022-09-19T16:46:45.881+08:00"
},
"success": true
}失败响应示例
json
{
"code": "100005",
"message": "系统异常!",
"data": null,
"success": false
}
{
"code": "100004",
"message": "参数值不能为空!",
"data": null,
"success": false
}