Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get bower items througth API #500

Open
whereyourspace opened this issue Oct 22, 2024 · 0 comments
Open

Can't get bower items througth API #500

whereyourspace opened this issue Oct 22, 2024 · 0 comments

Comments

@whereyourspace
Copy link

whereyourspace commented Oct 22, 2024

Hello. Sorry for my English. This text has been prepared using web translation tools.

1. What problem are you trying to solve?
I am trying to download the components of the bower repository via the API.
2. Do you have a workaround you are using at present?
No
3. What feature or behavior is this required for?
I am developing a utility myself that interacts with Nexus OSS via API
4. How could we solve this issue? (Not knowing is okay!)
I do not know
5. Tell us about your Nexus Repository deployment: what version, operating system, and database are you using?
I am deploying Nexus as a container based on the sonatype/nexus3 image:3.69.0.
Database: OrientDB
6. Anything else?
Screenshot from 2024-10-22 22-27-14

local@localhost:~/projects$ curl -u 'admin:password' http://localhost:8081/service/rest/v1/components?repository=bower-repo | jq
{
  "items": [],
  "continuationToken": null
}

But when I send a request to the assets URI, I get the correct list of items.

local@localhost:~/projects$ curl -u 'admin:password' http://localhost:8081/service/rest/v1/assets?repository=bower-repo | jq
{
  "items": [
    {
      "downloadUrl": "http://localhost:8081/repository/bower-repo/jquery/mapping.json",
      "path": "jquery/mapping.json",
      "id": "Ym93ZXItcmVwbzoyZmZmNTA5YTdjMmE5ZWJlNWMyZDJmMDJhNzcwMDVjMw",
      "repository": "bower-repo",
      "format": "bower",
      "checksum": {
        "sha1": "c3ec72e4da5abe24dba377022adea78d20e2cb2c"
      },
      "contentType": "application/json",
      "lastModified": "2024-10-22T17:27:52.338+00:00",
      "lastDownloaded": null,
      "uploader": "admin",
      "uploaderIp": "localhost",
      "fileSize": 62,
      "blobCreated": "2024-10-22T17:27:52.338+00:00"
    },
    {
      "downloadUrl": "http://localhost:8081/repository/bower-repo/nodejs-bower-monkey/mapping.json",
      "path": "nodejs-bower-monkey/mapping.json",
      "id": "Ym93ZXItcmVwbzoyNGMxZmUzMzVkMjY2NTJmYWQzZDI5MzU1MmFhOWNhZA",
      "repository": "bower-repo",
      "format": "bower",
      "checksum": {
        "sha1": "3804f4364d98d4e56b788c347162f64a203e4b48"
      },
      "contentType": "application/json",
      "lastModified": "2024-10-22T19:01:16.738+00:00",
      "lastDownloaded": null,
      "uploader": "admin",
      "uploaderIp": "localhost",
      "fileSize": 83,
      "blobCreated": "2024-10-22T19:01:16.738+00:00"
    }
  ],
  "continuationToken": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant