FOSSology · Capability

FOSSology API — Copyrights

FOSSology API — Copyrights. 50 operations. Lead operation: Get the total copyrights of the mentioned upload tree ID. Self-contained Naftiko capability covering one Fossology business surface.

Run with Naftiko FossologyCopyrights

What You Can Do

GET
Gettotalfilecopyrights — Get the total copyrights of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/totalcopyrights
GET
Gettotalfileusercopyrights — Get the total user copyright findings of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/totalusercopyrights
GET
Getfileauthors — Get the authors of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/authors
DELETE
Deletefileauthor — Deletes an author for a file
/v1/uploads/{id}/item/{itemid}/authors/{hash}
PATCH
Restorefileauthor — Restores an author for a file
/v1/uploads/{id}/item/{itemid}/authors/{hash}
PUT
Updatefileauthor — Updates an author for a file
/v1/uploads/{id}/item/{itemid}/authors/{hash}
GET
Getfilecopyrights — Get the copyrights of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/copyrights
DELETE
Deletefilecopyrights — Deletes a copyright for a file
/v1/uploads/{id}/item/{itemid}/copyrights/{hash}
PATCH
Restorefilecopyrights — Restores a copyright for a file
/v1/uploads/{id}/item/{itemid}/copyrights/{hash}
PUT
Updatefilecopyrights — Updates a copyright for a file
/v1/uploads/{id}/item/{itemid}/copyrights/{hash}
GET
Getfileeccs — Get the ECCs of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/eccs
DELETE
Deletefileecc — Deletes an ECC for a file
/v1/uploads/{id}/item/{itemid}/eccs/{hash}
PATCH
Restorefileecc — Restores an ECC for a file
/v1/uploads/{id}/item/{itemid}/eccs/{hash}
PUT
Updatefileecc — Updates an ECC for a file
/v1/uploads/{id}/item/{itemid}/eccs/{hash}
GET
Getfileemails — Get the emails of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/emails
DELETE
Deletefileemails — Deletes an email for a file
/v1/uploads/{id}/item/{itemid}/emails/{hash}
PATCH
Restorefileemail — Restores an email for a file
/v1/uploads/{id}/item/{itemid}/emails/{hash}
PUT
Updatefileemail — Updates an email for a file
/v1/uploads/{id}/item/{itemid}/emails/{hash}
GET
Getfileipras — Get the IPRAs of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/ipras
DELETE
Deletefileipra — Deletes an IPRA for a file
/v1/uploads/{id}/item/{itemid}/ipras/{hash}
PATCH
Restorefileipra — Restores an IPRA for a file
/v1/uploads/{id}/item/{itemid}/ipras/{hash}
PUT
Updatefileipra — Updates an IPRA for a file
/v1/uploads/{id}/item/{itemid}/ipras/{hash}
GET
Getfilekeywords — Get the keywords of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/keywords
DELETE
Deletefilekeyword — Deletes a keyword for a file
/v1/uploads/{id}/item/{itemid}/keywords/{hash}
PATCH
Restorefilekeyword — Restores a keyword for a file
/v1/uploads/{id}/item/{itemid}/keywords/{hash}
PUT
Updatefilekeyword — Updates a keyword for a file
/v1/uploads/{id}/item/{itemid}/keywords/{hash}
GET
Getfilescancodeauthor — Get the scancode author findings of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/scancode-authors
DELETE
Deletefilescancodeauthor — Deletes scancode author finding for a file
/v1/uploads/{id}/item/{itemid}/scancode-authors/{hash}
PATCH
Restorefilescancodeauthor — Restores scancode author finding for a file
/v1/uploads/{id}/item/{itemid}/scancode-authors/{hash}
PUT
Updatefilescancodeauthor — Updates scancode author finding for a file
/v1/uploads/{id}/item/{itemid}/scancode-authors/{hash}
GET
Getfilescancodecopyrights — Get the scancode copyright findings of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/scancode-copyrights
DELETE
Deletefilescancodecopyright — Deletes scancode copyright for a file
/v1/uploads/{id}/item/{itemid}/scancode-copyrights/{hash}
PATCH
Restorefilescancodecopyright — Restores scancode copyright for a file
/v1/uploads/{id}/item/{itemid}/scancode-copyrights/{hash}
PUT
Updatefilescancodecopyright — Updates scancode copyright for a file
/v1/uploads/{id}/item/{itemid}/scancode-copyrights/{hash}
GET
Getfilescancodeemail — Get the scancode email findings of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/scancode-emails
DELETE
Deletefilescancodeemail — Deletes scancode email finding for a file
/v1/uploads/{id}/item/{itemid}/scancode-emails/{hash}
PATCH
Restorefilescancodeemail — Restores scancode email finding for a file
/v1/uploads/{id}/item/{itemid}/scancode-emails/{hash}
PUT
Updatefilescancodeemail — Updates scancode email finding for a file
/v1/uploads/{id}/item/{itemid}/scancode-emails/{hash}
GET
Getfilescancodeurl — Get the scancode url findings of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/scancode-urls
DELETE
Deletefilescancodeurl — Deletes scancode url finding for a file
/v1/uploads/{id}/item/{itemid}/scancode-urls/{hash}
PATCH
Restorefilescancodeurl — Restores scancode url finding for a file
/v1/uploads/{id}/item/{itemid}/scancode-urls/{hash}
PUT
Updatefilescancodeurl — Updates scancode url finding for a file
/v1/uploads/{id}/item/{itemid}/scancode-urls/{hash}
GET
Getfileurls — Get the URLs of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/urls
DELETE
Deletefileurl — Deletes an URL for a file
/v1/uploads/{id}/item/{itemid}/urls/{hash}
PATCH
Restorefileurl — Restores an URL for a file
/v1/uploads/{id}/item/{itemid}/urls/{hash}
PUT
Updatefileurl — Updates an URL for a file
/v1/uploads/{id}/item/{itemid}/urls/{hash}
GET
Getfileusercopyrights — Get the user copyright findings of the mentioned upload tree ID
/v1/uploads/{id}/item/{itemid}/user-copyrights
DELETE
Deletefileusercopyright — Deletes user copyright for a file
/v1/uploads/{id}/item/{itemid}/user-copyrights/{hash}
PATCH
Restorefileusercopyright — Restores user copyright for a file
/v1/uploads/{id}/item/{itemid}/user-copyrights/{hash}
PUT
Updatefileusercopyright — Updates user copyright for a file
/v1/uploads/{id}/item/{itemid}/user-copyrights/{hash}

MCP Tools

get-total-copyrights-mentioned-upload

Get the total copyrights of the mentioned upload tree ID

read-only idempotent
get-total-user-copyright-findings

Get the total user copyright findings of the mentioned upload tree ID

read-only idempotent
get-authors-mentioned-upload-tree

Get the authors of the mentioned upload tree ID

read-only idempotent
deletes-author-file

Deletes an author for a file

idempotent
restores-author-file

Restores an author for a file

idempotent
updates-author-file

Updates an author for a file

idempotent
get-copyrights-mentioned-upload-tree

Get the copyrights of the mentioned upload tree ID

read-only idempotent
deletes-copyright-file

Deletes a copyright for a file

idempotent
restores-copyright-file

Restores a copyright for a file

idempotent
updates-copyright-file

Updates a copyright for a file

idempotent
get-eccs-mentioned-upload-tree

Get the ECCs of the mentioned upload tree ID

read-only idempotent
deletes-ecc-file

Deletes an ECC for a file

idempotent
restores-ecc-file

Restores an ECC for a file

idempotent
updates-ecc-file

Updates an ECC for a file

idempotent
get-emails-mentioned-upload-tree

Get the emails of the mentioned upload tree ID

read-only idempotent
deletes-email-file

Deletes an email for a file

idempotent
restores-email-file

Restores an email for a file

idempotent
updates-email-file

Updates an email for a file

idempotent
get-ipras-mentioned-upload-tree

Get the IPRAs of the mentioned upload tree ID

read-only idempotent
deletes-ipra-file

Deletes an IPRA for a file

idempotent
restores-ipra-file

Restores an IPRA for a file

idempotent
updates-ipra-file

Updates an IPRA for a file

idempotent
get-keywords-mentioned-upload-tree

Get the keywords of the mentioned upload tree ID

read-only idempotent
deletes-keyword-file

Deletes a keyword for a file

idempotent
restores-keyword-file

Restores a keyword for a file

idempotent
updates-keyword-file

Updates a keyword for a file

idempotent
get-scancode-author-findings-mentioned

Get the scancode author findings of the mentioned upload tree ID

read-only idempotent
deletes-scancode-author-finding-file

Deletes scancode author finding for a file

idempotent
restores-scancode-author-finding-file

Restores scancode author finding for a file

idempotent
updates-scancode-author-finding-file

Updates scancode author finding for a file

idempotent
get-scancode-copyright-findings-mentioned

Get the scancode copyright findings of the mentioned upload tree ID

read-only idempotent
deletes-scancode-copyright-file

Deletes scancode copyright for a file

idempotent
restores-scancode-copyright-file

Restores scancode copyright for a file

idempotent
updates-scancode-copyright-file

Updates scancode copyright for a file

idempotent
get-scancode-email-findings-mentioned

Get the scancode email findings of the mentioned upload tree ID

read-only idempotent
deletes-scancode-email-finding-file

Deletes scancode email finding for a file

idempotent
restores-scancode-email-finding-file

Restores scancode email finding for a file

idempotent
updates-scancode-email-finding-file

Updates scancode email finding for a file

idempotent
get-scancode-url-findings-mentioned

Get the scancode url findings of the mentioned upload tree ID

read-only idempotent
deletes-scancode-url-finding-file

Deletes scancode url finding for a file

idempotent
restores-scancode-url-finding-file

Restores scancode url finding for a file

idempotent
updates-scancode-url-finding-file

Updates scancode url finding for a file

idempotent
get-urls-mentioned-upload-tree

Get the URLs of the mentioned upload tree ID

read-only idempotent
deletes-url-file

Deletes an URL for a file

idempotent
restores-url-file

Restores an URL for a file

idempotent
updates-url-file

Updates an URL for a file

idempotent
get-user-copyright-findings-mentioned

Get the user copyright findings of the mentioned upload tree ID

read-only idempotent
deletes-user-copyright-file

Deletes user copyright for a file

idempotent
restores-user-copyright-file

Restores user copyright for a file

idempotent
updates-user-copyright-file

Updates user copyright for a file

idempotent

Capability Spec

fossology-copyrights.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: FOSSology API — Copyrights
  description: 'FOSSology API — Copyrights. 50 operations. Lead operation: Get the total copyrights of the mentioned upload
    tree ID. Self-contained Naftiko capability covering one Fossology business surface.'
  tags:
  - Fossology
  - Copyrights
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FOSSOLOGY_API_KEY: FOSSOLOGY_API_KEY
capability:
  consumes:
  - type: http
    namespace: fossology-copyrights
    baseUri: http://localhost/repo/api/v1
    description: FOSSology API — Copyrights business capability. Self-contained, no shared references.
    resources:
    - name: uploads-id-item-ItemId-totalcopyrights
      path: /uploads/{id}/item/{ItemId}/totalcopyrights
      operations:
      - name: gettotalfilecopyrights
        method: GET
        description: Get the total copyrights of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-ItemId-totalusercopyrights
      path: /uploads/{id}/item/{ItemId}/totalusercopyrights
      operations:
      - name: gettotalfileusercopyrights
        method: GET
        description: Get the total user copyright findings of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-authors
      path: /uploads/{id}/item/{itemId}/authors
      operations:
      - name: getfileauthors
        method: GET
        description: Get the authors of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-authors-hash
      path: /uploads/{id}/item/{itemId}/authors/{hash}
      operations:
      - name: deletefileauthor
        method: DELETE
        description: Deletes an author for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: restorefileauthor
        method: PATCH
        description: Restores an author for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatefileauthor
        method: PUT
        description: Updates an author for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: uploads-id-item-itemId-copyrights
      path: /uploads/{id}/item/{itemId}/copyrights
      operations:
      - name: getfilecopyrights
        method: GET
        description: Get the copyrights of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-copyrights-hash
      path: /uploads/{id}/item/{itemId}/copyrights/{hash}
      operations:
      - name: deletefilecopyrights
        method: DELETE
        description: Deletes a copyright for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: restorefilecopyrights
        method: PATCH
        description: Restores a copyright for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatefilecopyrights
        method: PUT
        description: Updates a copyright for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: uploads-id-item-itemId-eccs
      path: /uploads/{id}/item/{itemId}/eccs
      operations:
      - name: getfileeccs
        method: GET
        description: Get the ECCs of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-eccs-hash
      path: /uploads/{id}/item/{itemId}/eccs/{hash}
      operations:
      - name: deletefileecc
        method: DELETE
        description: Deletes an ECC for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: restorefileecc
        method: PATCH
        description: Restores an ECC for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatefileecc
        method: PUT
        description: Updates an ECC for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: uploads-id-item-itemId-emails
      path: /uploads/{id}/item/{itemId}/emails
      operations:
      - name: getfileemails
        method: GET
        description: Get the emails of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-emails-hash
      path: /uploads/{id}/item/{itemId}/emails/{hash}
      operations:
      - name: deletefileemails
        method: DELETE
        description: Deletes an email for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: restorefileemail
        method: PATCH
        description: Restores an email for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatefileemail
        method: PUT
        description: Updates an email for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: uploads-id-item-itemId-ipras
      path: /uploads/{id}/item/{itemId}/ipras
      operations:
      - name: getfileipras
        method: GET
        description: Get the IPRAs of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-ipras-hash
      path: /uploads/{id}/item/{itemId}/ipras/{hash}
      operations:
      - name: deletefileipra
        method: DELETE
        description: Deletes an IPRA for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: restorefileipra
        method: PATCH
        description: Restores an IPRA for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatefileipra
        method: PUT
        description: Updates an IPRA for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: uploads-id-item-itemId-keywords
      path: /uploads/{id}/item/{itemId}/keywords
      operations:
      - name: getfilekeywords
        method: GET
        description: Get the keywords of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-keywords-hash
      path: /uploads/{id}/item/{itemId}/keywords/{hash}
      operations:
      - name: deletefilekeyword
        method: DELETE
        description: Deletes a keyword for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: restorefilekeyword
        method: PATCH
        description: Restores a keyword for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatefilekeyword
        method: PUT
        description: Updates a keyword for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: uploads-id-item-itemId-scancode-authors
      path: /uploads/{id}/item/{itemId}/scancode-authors
      operations:
      - name: getfilescancodeauthor
        method: GET
        description: Get the scancode author findings of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-scancode-authors-hash
      path: /uploads/{id}/item/{itemId}/scancode-authors/{hash}
      operations:
      - name: deletefilescancodeauthor
        method: DELETE
        description: Deletes scancode author finding for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: restorefilescancodeauthor
        method: PATCH
        description: Restores scancode author finding for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatefilescancodeauthor
        method: PUT
        description: Updates scancode author finding for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: uploads-id-item-itemId-scancode-copyrights
      path: /uploads/{id}/item/{itemId}/scancode-copyrights
      operations:
      - name: getfilescancodecopyrights
        method: GET
        description: Get the scancode copyright findings of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-scancode-copyrights-hash
      path: /uploads/{id}/item/{itemId}/scancode-copyrights/{hash}
      operations:
      - name: deletefilescancodecopyright
        method: DELETE
        description: Deletes scancode copyright for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: restorefilescancodecopyright
        method: PATCH
        description: Restores scancode copyright for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatefilescancodecopyright
        method: PUT
        description: Updates scancode copyright for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: uploads-id-item-itemId-scancode-emails
      path: /uploads/{id}/item/{itemId}/scancode-emails
      operations:
      - name: getfilescancodeemail
        method: GET
        description: Get the scancode email findings of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-scancode-emails-hash
      path: /uploads/{id}/item/{itemId}/scancode-emails/{hash}
      operations:
      - name: deletefilescancodeemail
        method: DELETE
        description: Deletes scancode email finding for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: restorefilescancodeemail
        method: PATCH
        description: Restores scancode email finding for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatefilescancodeemail
        method: PUT
        description: Updates scancode email finding for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: uploads-id-item-itemId-scancode-urls
      path: /uploads/{id}/item/{itemId}/scancode-urls
      operations:
      - name: getfilescancodeurl
        method: GET
        description: Get the scancode url findings of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-scancode-urls-hash
      path: /uploads/{id}/item/{itemId}/scancode-urls/{hash}
      operations:
      - name: deletefilescancodeurl
        method: DELETE
        description: Deletes scancode url finding for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: restorefilescancodeurl
        method: PATCH
        description: Restores scancode url finding for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatefilescancodeurl
        method: PUT
        description: Updates scancode url finding for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: uploads-id-item-itemId-urls
      path: /uploads/{id}/item/{itemId}/urls
      operations:
      - name: getfileurls
        method: GET
        description: Get the URLs of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-urls-hash
      path: /uploads/{id}/item/{itemId}/urls/{hash}
      operations:
      - name: deletefileurl
        method: DELETE
        description: Deletes an URL for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: restorefileurl
        method: PATCH
        description: Restores an URL for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatefileurl
        method: PUT
        description: Updates an URL for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: uploads-id-item-itemId-user-copyrights
      path: /uploads/{id}/item/{itemId}/user-copyrights
      operations:
      - name: getfileusercopyrights
        method: GET
        description: Get the user copyright findings of the mentioned upload tree ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: uploads-id-item-itemId-user-copyrights-hash
      path: /uploads/{id}/item/{itemId}/user-copyrights/{hash}
      operations:
      - name: deletefileusercopyright
        method: DELETE
        description: Deletes user copyright for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: restorefileusercopyright
        method: PATCH
        description: Restores user copyright for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatefileusercopyright
        method: PUT
        description: Updates user copyright for a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.FOSSOLOGY_API_KEY}}'
  exposes:
  - type: rest
    namespace: fossology-copyrights-rest
    port: 8080
    description: REST adapter for FOSSology API — Copyrights. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/uploads/{id}/item/{itemid}/totalcopyrights
      name: uploads-id-item-itemid-totalcopyrights
      description: REST surface for uploads-id-item-ItemId-totalcopyrights.
      operations:
      - method: GET
        name: gettotalfilecopyrights
        description: Get the total copyrights of the mentioned upload tree ID
        call: fossology-copyrights.gettotalfilecopyrights
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/totalusercopyrights
      name: uploads-id-item-itemid-totalusercopyrights
      description: REST surface for uploads-id-item-ItemId-totalusercopyrights.
      operations:
      - method: GET
        name: gettotalfileusercopyrights
        description: Get the total user copyright findings of the mentioned upload tree ID
        call: fossology-copyrights.gettotalfileusercopyrights
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/authors
      name: uploads-id-item-itemid-authors
      description: REST surface for uploads-id-item-itemId-authors.
      operations:
      - method: GET
        name: getfileauthors
        description: Get the authors of the mentioned upload tree ID
        call: fossology-copyrights.getfileauthors
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/authors/{hash}
      name: uploads-id-item-itemid-authors-hash
      description: REST surface for uploads-id-item-itemId-authors-hash.
      operations:
      - method: DELETE
        name: deletefileauthor
        description: Deletes an author for a file
        call: fossology-copyrights.deletefileauthor
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: restorefileauthor
        description: Restores an author for a file
        call: fossology-copyrights.restorefileauthor
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatefileauthor
        description: Updates an author for a file
        call: fossology-copyrights.updatefileauthor
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/copyrights
      name: uploads-id-item-itemid-copyrights
      description: REST surface for uploads-id-item-itemId-copyrights.
      operations:
      - method: GET
        name: getfilecopyrights
        description: Get the copyrights of the mentioned upload tree ID
        call: fossology-copyrights.getfilecopyrights
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/copyrights/{hash}
      name: uploads-id-item-itemid-copyrights-hash
      description: REST surface for uploads-id-item-itemId-copyrights-hash.
      operations:
      - method: DELETE
        name: deletefilecopyrights
        description: Deletes a copyright for a file
        call: fossology-copyrights.deletefilecopyrights
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: restorefilecopyrights
        description: Restores a copyright for a file
        call: fossology-copyrights.restorefilecopyrights
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatefilecopyrights
        description: Updates a copyright for a file
        call: fossology-copyrights.updatefilecopyrights
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/eccs
      name: uploads-id-item-itemid-eccs
      description: REST surface for uploads-id-item-itemId-eccs.
      operations:
      - method: GET
        name: getfileeccs
        description: Get the ECCs of the mentioned upload tree ID
        call: fossology-copyrights.getfileeccs
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/eccs/{hash}
      name: uploads-id-item-itemid-eccs-hash
      description: REST surface for uploads-id-item-itemId-eccs-hash.
      operations:
      - method: DELETE
        name: deletefileecc
        description: Deletes an ECC for a file
        call: fossology-copyrights.deletefileecc
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: restorefileecc
        description: Restores an ECC for a file
        call: fossology-copyrights.restorefileecc
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatefileecc
        description: Updates an ECC for a file
        call: fossology-copyrights.updatefileecc
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/emails
      name: uploads-id-item-itemid-emails
      description: REST surface for uploads-id-item-itemId-emails.
      operations:
      - method: GET
        name: getfileemails
        description: Get the emails of the mentioned upload tree ID
        call: fossology-copyrights.getfileemails
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/emails/{hash}
      name: uploads-id-item-itemid-emails-hash
      description: REST surface for uploads-id-item-itemId-emails-hash.
      operations:
      - method: DELETE
        name: deletefileemails
        description: Deletes an email for a file
        call: fossology-copyrights.deletefileemails
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: restorefileemail
        description: Restores an email for a file
        call: fossology-copyrights.restorefileemail
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatefileemail
        description: Updates an email for a file
        call: fossology-copyrights.updatefileemail
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/ipras
      name: uploads-id-item-itemid-ipras
      description: REST surface for uploads-id-item-itemId-ipras.
      operations:
      - method: GET
        name: getfileipras
        description: Get the IPRAs of the mentioned upload tree ID
        call: fossology-copyrights.getfileipras
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/ipras/{hash}
      name: uploads-id-item-itemid-ipras-hash
      description: REST surface for uploads-id-item-itemId-ipras-hash.
      operations:
      - method: DELETE
        name: deletefileipra
        description: Deletes an IPRA for a file
        call: fossology-copyrights.deletefileipra
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: restorefileipra
        description: Restores an IPRA for a file
        call: fossology-copyrights.restorefileipra
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatefileipra
        description: Updates an IPRA for a file
        call: fossology-copyrights.updatefileipra
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/keywords
      name: uploads-id-item-itemid-keywords
      description: REST surface for uploads-id-item-itemId-keywords.
      operations:
      - method: GET
        name: getfilekeywords
        description: Get the keywords of the mentioned upload tree ID
        call: fossology-copyrights.getfilekeywords
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/keywords/{hash}
      name: uploads-id-item-itemid-keywords-hash
      description: REST surface for uploads-id-item-itemId-keywords-hash.
      operations:
      - method: DELETE
        name: deletefilekeyword
        description: Deletes a keyword for a file
        call: fossology-copyrights.deletefilekeyword
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: restorefilekeyword
        description: Restores a keyword for a file
        call: fossology-copyrights.restorefilekeyword
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatefilekeyword
        description: Updates a keyword for a file
        call: fossology-copyrights.updatefilekeyword
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/scancode-authors
      name: uploads-id-item-itemid-scancode-authors
      description: REST surface for uploads-id-item-itemId-scancode-authors.
      operations:
      - method: GET
        name: getfilescancodeauthor
        description: Get the scancode author findings of the mentioned upload tree ID
        call: fossology-copyrights.getfilescancodeauthor
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/scancode-authors/{hash}
      name: uploads-id-item-itemid-scancode-authors-hash
      description: REST surface for uploads-id-item-itemId-scancode-authors-hash.
      operations:
      - method: DELETE
        name: deletefilescancodeauthor
        description: Deletes scancode author finding for a file
        call: fossology-copyrights.deletefilescancodeauthor
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: restorefilescancodeauthor
        description: Restores scancode author finding for a file
        call: fossology-copyrights.restorefilescancodeauthor
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatefilescancodeauthor
        description: Updates scancode author finding for a file
        call: fossology-copyrights.updatefilescancodeauthor
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/scancode-copyrights
      name: uploads-id-item-itemid-scancode-copyrights
      description: REST surface for uploads-id-item-itemId-scancode-copyrights.
      operations:
      - method: GET
        name: getfilescancodecopyrights
        description: Get the scancode copyright findings of the mentioned upload tree ID
        call: fossology-copyrights.getfilescancodecopyrights
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/scancode-copyrights/{hash}
      name: uploads-id-item-itemid-scancode-copyrights-hash
      description: REST surface for uploads-id-item-itemId-scancode-copyrights-hash.
      operations:
      - method: DELETE
        name: deletefilescancodecopyright
        description: Deletes scancode copyright for a file
        call: fossology-copyrights.deletefilescancodecopyright
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: restorefilescancodecopyright
        description: Restores scancode copyright for a file
        call: fossology-copyrights.restorefilescancodecopyright
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatefilescancodecopyright
        description: Updates scancode copyright for a file
        call: fossology-copyrights.updatefilescancodecopyright
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/scancode-emails
      name: uploads-id-item-itemid-scancode-emails
      description: REST surface for uploads-id-item-itemId-scancode-emails.
      operations:
      - method: GET
        name: getfilescancodeemail
        description: Get the scancode email findings of the mentioned upload tree ID
        call: fossology-copyrights.getfilescancodeemail
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/scancode-emails/{hash}
      name: uploads-id-item-itemid-scancode-emails-hash
      description: REST surface for uploads-id-item-itemId-scancode-emails-hash.
      operations:
      - method: DELETE
        name: deletefilescancodeemail
        description: Deletes scancode email finding for a file
        call: fossology-copyrights.deletefilescancodeemail
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: restorefilescancodeemail
        description: Restores scancode email finding for a file
        call: fossology-copyrights.restorefilescancodeemail
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatefilescancodeemail
        description: Updates scancode email finding for a file
        call: fossology-copyrights.updatefilescancodeemail
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/scancode-urls
      name: uploads-id-item-itemid-scancode-urls
      description: REST surface for uploads-id-item-itemId-scancode-urls.
      operations:
      - method: GET
        name: getfilescancodeurl
        description: Get the scancode url findings of the mentioned upload tree ID
        call: fossology-copyrights.getfilescancodeurl
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/uploads/{id}/item/{itemid}/scancode-urls/{hash}
      name: uploads-id-item-itemid-scancode-urls-hash
      description: REST surface for uploads-id-item-itemId-scancode-urls-hash.
      operations:
      - method: DELETE
        name: deletefilescancodeurl
        description: Deletes scancode url finding for a file
        call: fossology-copyrights.deletefilescancodeurl
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: restorefilescancodeurl
        description: Restores scancode url finding for a file
        call: fossology-copyrights.restorefilescancodeurl
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatefilescancodeurl
        description: Updates scancode url finding for a file
        call: fossology-copyrights.updatefilescancodeurl
  

# --- truncated at 32 KB (50 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/fossology/refs/heads/main/capabilities/fossology-copyrights.yaml