The license assigned to a project, served from /new_api/projects/{projectId}/license.

1. Get license

Returns the license currently assigned to the project (404 if none is assigned).

1.1. HTTP request

GET /minerva/new_api/projects/test_project/license HTTP/1.1

1.2. Path Parameters

Table 1. /minerva/new_api/projects/{projectId}/license
Parameter Description

projectId

project identifier

1.3. CURL sample

$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/license' -X GET \
    -H 'Authorization: Bearer xxxxxxxx'

1.4. HTTP response

HTTP/1.1 200 OK

1.5. Response Fields

Path Type Description

id

Number

unique license identifier

name

String

license name

content

String

full license text

url

String

URL to the license

1.6. Sample Response

{
  "id" : 1,
  "name" : "CC0 1.0 Universal",
  "content" : "\n<h3><em>Statement of Purpose</em></h3>\n<p>The laws of most jurisdictions throughout the world\nautomatically confer exclusive Copyright and Related Rights\n(defined below) upon the creator and subsequent owner(s) (each\nand all, an \"owner\") of an original work of authorship and/or\na database (each, a \"Work\").</p>\n<p>Certain owners wish to permanently relinquish those rights\nto a Work for the purpose of contributing to a commons of\ncreative, cultural and scientific works (\"Commons\") that the\npublic can reliably and without fear of later claims of\ninfringement build upon, modify, incorporate in other works,\nreuse and redistribute as freely as possible in any form\nwhatsoever and for any purposes, including without limitation\ncommercial purposes. These owners may contribute to the\nCommons to promote the ideal of a free culture and the further\nproduction of creative, cultural and scientific works, or to\ngain reputation or greater distribution for their Work in part\nthrough the use and efforts of others.</p>\n<p>For these and/or other purposes and motivations, and\nwithout any expectation of additional consideration or\ncompensation, the person associating CC0 with a Work (the\n\"Affirmer\"), to the extent that he or she is an owner of\nCopyright and Related Rights in the Work, voluntarily elects\nto apply CC0 to the Work and publicly distribute the Work\nunder its terms, with knowledge of his or her Copyright and\nRelated Rights in the Work and the meaning and intended legal\neffect of CC0 on those rights.</p>\n<p><strong>1. Copyright and Related Rights.</strong>\nA Work made available under CC0 may be protected by\ncopyright and related or neighboring rights (\"Copyright and\nRelated Rights\"). Copyright and Related Rights include, but\nare not limited to, the following:\n</p>\n<ol type=\"i\">\n<li>the right to reproduce, adapt, distribute, perform,\ndisplay, communicate, and translate a Work;</li>\n<li> moral rights retained by the original author(s) and/or\nperformer(s);</li>\n<li>publicity and privacy rights pertaining to a person's\nimage or likeness depicted in a Work;</li>\n<li>rights protecting against unfair competition in regards\nto a Work, subject to the limitations in paragraph 4(a),\nbelow;</li>\n<li>rights protecting the extraction, dissemination, use and\nreuse of data in a Work;</li>\n<li>database rights (such as those arising under Directive\n96/9/EC of the European Parliament and of the Council of 11\nMarch 1996 on the legal protection of databases, and under\nany national implementation thereof, including any amended\nor successor version of such directive); and</li>\n<li>other similar, equivalent or corresponding rights\nthroughout the world based on applicable law or treaty, and\nany national implementations thereof.</li>\n</ol>\n<p><strong>2. Waiver.</strong> To the greatest extent\npermitted by, but not in contravention of, applicable law,\nAffirmer hereby overtly, fully, permanently, irrevocably and\nunconditionally waives, abandons, and surrenders all of\nAffirmer's Copyright and Related Rights and associated claims\nand causes of action, whether now known or unknown (including\nexisting as well as future claims and causes of action), in\nthe Work (i) in all territories worldwide, (ii) for the\nmaximum duration provided by applicable law or treaty\n(including future time extensions), (iii) in any current or\nfuture medium and for any number of copies, and (iv) for any\npurpose whatsoever, including without limitation commercial,\nadvertising or promotional purposes (the \"Waiver\"). Affirmer\nmakes the Waiver for the benefit of each member of the public\nat large and to the detriment of Affirmer's heirs and\nsuccessors, fully intending that such Waiver shall not be\nsubject to revocation, rescission, cancellation, termination,\nor any other legal or equitable action to disrupt the quiet\nenjoyment of the Work by the public as contemplated by\nAffirmer's express Statement of Purpose.\n</p>\n<p><strong>3. Public License Fallback.</strong> Should any\npart of the Waiver for any reason be judged legally invalid or\nineffective under applicable law, then the Waiver shall be\npreserved to the maximum extent permitted taking into account\nAffirmer's express Statement of Purpose. In addition, to the\nextent the Waiver is so judged Affirmer hereby grants to each\naffected person a royalty-free, non transferable, non\nsublicensable, non exclusive, irrevocable and unconditional\nlicense to exercise Affirmer's Copyright and Related Rights\nin the Work (i) in all territories worldwide, (ii) for the\nmaximum duration provided by applicable law or treaty\n(including future time extensions), (iii) in any current or\nfuture medium and for any number of copies, and (iv) for any\npurpose whatsoever, including without limitation commercial,\nadvertising or promotional purposes (the \"License\"). The\nLicense shall be deemed effective as of the date CC0 was\napplied by Affirmer to the Work. Should any part of the\nLicense for any reason be judged legally invalid or\nineffective under applicable law, such partial invalidity or\nineffectiveness shall not invalidate the remainder of the\nLicense, and in such case Affirmer hereby affirms that he or\nshe will not (i) exercise any of his or her remaining\nCopyright and Related Rights in the Work or (ii) assert any\nassociated claims and causes of action with respect to the\nWork, in either case contrary to Affirmer's express Statement\nof Purpose.</p>\n<p><strong>4. Limitations and Disclaimers.</strong></p>\n<ol type=\"a\">\n<li>No trademark or patent rights held by Affirmer are\nwaived, abandoned, surrendered, licensed or otherwise\naffected by this document.</li>\n<li>Affirmer offers the Work as-is and makes no\nrepresentations or warranties of any kind concerning the\nWork, express, implied, statutory or otherwise, including\nwithout limitation warranties of title, merchantability,\nfitness for a particular purpose, non infringement, or the\nabsence of latent or other defects, accuracy, or the present\nor absence of errors, whether or not discoverable, all to\nthe greatest extent permissible under applicable law.</li>\n<li>Affirmer disclaims responsibility for clearing rights of\nother persons that may apply to the Work or any use thereof,\nincluding without limitation any person's Copyright and\nRelated Rights in the Work. Further, Affirmer disclaims\nresponsibility for obtaining any necessary consents,\npermissions or other rights required for any use of the\nWork.</li>\n<li>Affirmer understands and acknowledges that Creative\nCommons is not a party to this document and has no duty or\nobligation with respect to this CC0 or use of the Work.</li>\n</ol>\n",
  "url" : "https://creativecommons.org/publicdomain/zero/1.0/"
}

2. Set license

Assigns an existing license (see Licenses) to the project. It’s not possible to create a new license through this endpoint - only assignment of an existing license (by id) is supported.

Note
Supports optimistic locking via the If-Match header.

2.1. HTTP request

PUT /minerva/new_api/projects/test_project/license HTTP/1.1

2.2. Path Parameters

Table 2. /minerva/new_api/projects/{projectId}/license
Parameter Description

projectId

project identifier

2.3. Request Fields

Path Type Description

id

Number

identifier of an existing license (see licenses endpoint) to assign to the project

2.4. CURL sample

$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/license' -X PUT \
    -H 'Authorization: Bearer xxxxxxxx' \
    -d '{"id":1}' \
    -H 'Content-Type: application/json'

2.5. HTTP response

HTTP/1.1 200 OK

2.6. Response Fields

Path Type Description

id

Number

unique license identifier

name

String

license name

content

String

full license text

url

String

URL to the license

2.7. Sample Response

{
  "id" : 1,
  "name" : "CC0 1.0 Universal",
  "content" : "\n<h3><em>Statement of Purpose</em></h3>\n<p>The laws of most jurisdictions throughout the world\nautomatically confer exclusive Copyright and Related Rights\n(defined below) upon the creator and subsequent owner(s) (each\nand all, an \"owner\") of an original work of authorship and/or\na database (each, a \"Work\").</p>\n<p>Certain owners wish to permanently relinquish those rights\nto a Work for the purpose of contributing to a commons of\ncreative, cultural and scientific works (\"Commons\") that the\npublic can reliably and without fear of later claims of\ninfringement build upon, modify, incorporate in other works,\nreuse and redistribute as freely as possible in any form\nwhatsoever and for any purposes, including without limitation\ncommercial purposes. These owners may contribute to the\nCommons to promote the ideal of a free culture and the further\nproduction of creative, cultural and scientific works, or to\ngain reputation or greater distribution for their Work in part\nthrough the use and efforts of others.</p>\n<p>For these and/or other purposes and motivations, and\nwithout any expectation of additional consideration or\ncompensation, the person associating CC0 with a Work (the\n\"Affirmer\"), to the extent that he or she is an owner of\nCopyright and Related Rights in the Work, voluntarily elects\nto apply CC0 to the Work and publicly distribute the Work\nunder its terms, with knowledge of his or her Copyright and\nRelated Rights in the Work and the meaning and intended legal\neffect of CC0 on those rights.</p>\n<p><strong>1. Copyright and Related Rights.</strong>\nA Work made available under CC0 may be protected by\ncopyright and related or neighboring rights (\"Copyright and\nRelated Rights\"). Copyright and Related Rights include, but\nare not limited to, the following:\n</p>\n<ol type=\"i\">\n<li>the right to reproduce, adapt, distribute, perform,\ndisplay, communicate, and translate a Work;</li>\n<li> moral rights retained by the original author(s) and/or\nperformer(s);</li>\n<li>publicity and privacy rights pertaining to a person's\nimage or likeness depicted in a Work;</li>\n<li>rights protecting against unfair competition in regards\nto a Work, subject to the limitations in paragraph 4(a),\nbelow;</li>\n<li>rights protecting the extraction, dissemination, use and\nreuse of data in a Work;</li>\n<li>database rights (such as those arising under Directive\n96/9/EC of the European Parliament and of the Council of 11\nMarch 1996 on the legal protection of databases, and under\nany national implementation thereof, including any amended\nor successor version of such directive); and</li>\n<li>other similar, equivalent or corresponding rights\nthroughout the world based on applicable law or treaty, and\nany national implementations thereof.</li>\n</ol>\n<p><strong>2. Waiver.</strong> To the greatest extent\npermitted by, but not in contravention of, applicable law,\nAffirmer hereby overtly, fully, permanently, irrevocably and\nunconditionally waives, abandons, and surrenders all of\nAffirmer's Copyright and Related Rights and associated claims\nand causes of action, whether now known or unknown (including\nexisting as well as future claims and causes of action), in\nthe Work (i) in all territories worldwide, (ii) for the\nmaximum duration provided by applicable law or treaty\n(including future time extensions), (iii) in any current or\nfuture medium and for any number of copies, and (iv) for any\npurpose whatsoever, including without limitation commercial,\nadvertising or promotional purposes (the \"Waiver\"). Affirmer\nmakes the Waiver for the benefit of each member of the public\nat large and to the detriment of Affirmer's heirs and\nsuccessors, fully intending that such Waiver shall not be\nsubject to revocation, rescission, cancellation, termination,\nor any other legal or equitable action to disrupt the quiet\nenjoyment of the Work by the public as contemplated by\nAffirmer's express Statement of Purpose.\n</p>\n<p><strong>3. Public License Fallback.</strong> Should any\npart of the Waiver for any reason be judged legally invalid or\nineffective under applicable law, then the Waiver shall be\npreserved to the maximum extent permitted taking into account\nAffirmer's express Statement of Purpose. In addition, to the\nextent the Waiver is so judged Affirmer hereby grants to each\naffected person a royalty-free, non transferable, non\nsublicensable, non exclusive, irrevocable and unconditional\nlicense to exercise Affirmer's Copyright and Related Rights\nin the Work (i) in all territories worldwide, (ii) for the\nmaximum duration provided by applicable law or treaty\n(including future time extensions), (iii) in any current or\nfuture medium and for any number of copies, and (iv) for any\npurpose whatsoever, including without limitation commercial,\nadvertising or promotional purposes (the \"License\"). The\nLicense shall be deemed effective as of the date CC0 was\napplied by Affirmer to the Work. Should any part of the\nLicense for any reason be judged legally invalid or\nineffective under applicable law, such partial invalidity or\nineffectiveness shall not invalidate the remainder of the\nLicense, and in such case Affirmer hereby affirms that he or\nshe will not (i) exercise any of his or her remaining\nCopyright and Related Rights in the Work or (ii) assert any\nassociated claims and causes of action with respect to the\nWork, in either case contrary to Affirmer's express Statement\nof Purpose.</p>\n<p><strong>4. Limitations and Disclaimers.</strong></p>\n<ol type=\"a\">\n<li>No trademark or patent rights held by Affirmer are\nwaived, abandoned, surrendered, licensed or otherwise\naffected by this document.</li>\n<li>Affirmer offers the Work as-is and makes no\nrepresentations or warranties of any kind concerning the\nWork, express, implied, statutory or otherwise, including\nwithout limitation warranties of title, merchantability,\nfitness for a particular purpose, non infringement, or the\nabsence of latent or other defects, accuracy, or the present\nor absence of errors, whether or not discoverable, all to\nthe greatest extent permissible under applicable law.</li>\n<li>Affirmer disclaims responsibility for clearing rights of\nother persons that may apply to the Work or any use thereof,\nincluding without limitation any person's Copyright and\nRelated Rights in the Work. Further, Affirmer disclaims\nresponsibility for obtaining any necessary consents,\npermissions or other rights required for any use of the\nWork.</li>\n<li>Affirmer understands and acknowledges that Creative\nCommons is not a party to this document and has no duty or\nobligation with respect to this CC0 or use of the Work.</li>\n</ol>\n",
  "url" : "https://creativecommons.org/publicdomain/zero/1.0/"
}

3. Delete license

Removes the license assignment from the project.

Note
Supports optimistic locking via the If-Match header.

3.1. HTTP request

DELETE /minerva/new_api/projects/test_project/license HTTP/1.1

3.2. Path Parameters

Table 3. /minerva/new_api/projects/{projectId}/license
Parameter Description

projectId

project identifier

3.3. CURL sample

$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/license' -X DELETE \
    -H 'Authorization: Bearer xxxxxxxx'

3.4. HTTP response

HTTP/1.1 200 OK