Hi Greg,
Chris is right, there was so far no convenient way to get this
information. Therefore I added a new API to get more detailed
information on labels:
GET /{project_id}/labels/detail
It will return a list of objects, one for each available label in the
current project. Each object currently has the fields 'id' and 'name'.
From this you can easily build a mapping in either direction. Like Chris
already said, we currently don't enforce name uniqueness in the
databases for labels, but we still assume it and our API endpoints
shouldn't create any name duplicates.
I also updated the `/{project_id}/skeletons/node-labels` endpoint to
also accept a `label_names` parameter to avoid the label ID lookup
altogether.
Cheers,
Tom