dvl
Suggestions based on conversation with Tom Judge via Twitter.

what about:
/api/1/search/ports/name=git
/api/1/repo/ports/cat/port/
/api/1/repo/branches/cat/port
/api/1/repo/src

/api/1/repo/branch/name/cat/port
/api/1/repo/head/cat/port

and:

you could collapse branch/name and head into /head|<branch_name>/
posted by dvl 4 years and 4 months ago Link