Skip to content

Tab Completion API Endpoints

half-ogre edited this page Jun 19, 2012 · 3 revisions

The NuGet 2.0 clients uses two API endpoints to get tab completion data.

Package IDs API

GET api/v2/package-ids

Parameters

  • partialId: An optional string by which the list of packages will be filtered on ID. All package IDs starting with this parameter (ignoring case) will be returned.
  • includePrerelease: A Boolean that indicates whether package IDs that only have pre-release package versions will be included in the response.

Response

An array of strings in JSON. Only The first 30 results will be included in the response. For example:

["theFirstPackageId","theSecondPackageId","theNthPackageId"]

Package Versions API

GET api/v2/package-versions/{packageId}

Parameters

  • includePrerelease: A Boolean that indicates whether pre-release package versions will be included in the response.

Response

An array of strings in JSON. For example:

["0.1","1.0","1.1","2.0","2.1-pre"]

Notes

We currently don't look at the Accept header or do lots of other proper HTTP API stuff. Create an issue for what needs to be fixed.