An Enlistment joins a Project to a source control Repository.
Once added to the Ohloh database, a Repository is permanent. However, Enlistments to that Repository may be added or removed at any time. Many Projects may share a single Repository.
- id The unique ID of the Enlistment.
- project_id The unique ID of the Project.
- repository_id The unique ID of the Repository.
- repository The Repository record will be included in full here.
To get a single Enlistment
curl GET https://www.openhub.net/p/{project_id}/enlistments/{enlistment_id}.xml
To get a list of all enlistments for a particular project:
curl https://www.openhub.net/p/{project_id}/enlistments.xml
The Enlistment collection method supports the standard collection request parameters with the following details:
- query If supplied, enlistments with a repository URL matching the query string will be returned.
- sort
Enlistment collections support the following sort options:
- module_name
- project
- type
- url (default)