managing teams via registry API


(William) #1

I looked at:

github dot com /npm/registry/blob/master/docs/

and I see how a user’s role can be managed, but I don’t see a way to manage teams in the docs here.

Taking a look at npm cli => team.js it would seem that it’s the team route, and indeed, I can get that route (e.g., via
curl -s -H 'Authorization: Bearer xxxx' -XGET https://registry.npmjs.org/-/org/xyz/team

Is the API any better documented anywhere?


(William) #2

Ended up figuring this out

Specifically via looking at https://github.com/npm/npm-registry-client/blob/latest/lib/team.js and https://github.com/npm/cli/blob/latest/lib/team.js
But I really think that the API docs could be much better, as could those of npm-registry-client.


(system) #3

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.