Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.3 KB

enlistment.md

File metadata and controls

40 lines (31 loc) · 1.3 KB

Enlistment

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.

Properties

  • 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.

URL

To get a single Enlistment

curl GET https://www.openhub.net/p/{project_id}/enlistments/{enlistment_id}.xml

Collection URL

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)