Introduction to the Distribution REST APIs

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Artifactory provides a convenient and up-to-date self-descriptive API that can be used by various tools/frameworks to automate the creation of REST calls.

Usage

Distribution provides a convenient and up-to-date self-descriptive API that can be used by various tools/frameworks to automate the creation of REST calls.

Distribution REST API endpoints can be invoked in any of the standard ways to invoke a RESTful API. This section describes how to use the Distribution REST API using cURL as an example.

Using and Configuring cURL

You can download cURL here. Learn how to use and configure cURL here.

Authentication

Distribution's REST API supports these forms of authentication:

  • Basic authentication using your username and password

  • Basic authentication using your username and API KeyUser Profile

  • Using an Access TokenAccess Tokens

    instead of a password for basic authentication.

  • Using an Access TokenAccess Tokens

    as a bearer token in an authorization header (Authorization: Bearer) with your access token.

Base URL

The Platform REST URL is constructed of:

<JFrog URL>/<Service Context>/api/<API-Version>

For example:

# Using your JFrog URL 
http://myjfrog.acme.org/distribution/api/v1

# Using your Artifactory server hostname and the Artifactory router port
http://ARTIFACTORY_SERVER_HOSTNAME:8082/distribution/api/v1