# Advanced Use Cases for the Nexus Repository Manager API

**URL:** <https://community.sonatype.com/t/advanced-use-cases-for-the-nexus-repository-manager-api/80>\
**Category:** Best Practices\
**Tags:** rest, integrations, customer-questions, best-practice\
**Created:** [June 1, 2018, 10:09pm UTC](https://community.sonatype.com/t/advanced-use-cases-for-the-nexus-repository-manager-api/80 "2018-06-01T22:09:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mworthington](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mworthington/32/64_2.png) [@mworthington](https://community.sonatype.com/u/mworthington)\
**Post date:** [June 1, 2018, 10:09pm UTC](https://community.sonatype.com/t/advanced-use-cases-for-the-nexus-repository-manager-api/80/1 "2018-06-01T22:09:02Z")

</div>

One of the most frequent area of questions related to Nexus Repository Manager is how to integrate with other tools via the API.

## Integrations API

Nexus Repository Manager 2 only contained a formal REST API. This required complex administrative tasks to be performed using multiple HTTP calls, sometimes resulting in race conditions. We solved this with Nexus Repository Manager 3 by creating a flexible Integrations API that allows administrators to combine multiple configuration tasks into one HTTP call. The new API also provides the flexibility to perform complex use cases that are not possible with an object based REST API. Sample groovy scripts and the Javadocs for the Integrations API can be found in our GitHub project at [GitHub - sonatype-nexus-community/nexus-scripting-examples: Sample scripts that use NXRM's scripting interface · GitHub](https://github.com/sonatype-nexus-community/nexus-scripting-examples). The full documentation for each can be found at [Automation](https://help.sonatype.com/repomanager3/rest-and-integration-api).

## REST API

Nexus Repository Manager 3 does have a more traditional-style REST API. Whereas the Integrations API is focused on configuration automation, the REST API is focused on searching and interacting with the content of the repositories. An introduction to the REST API can be found at [New Beta REST API for Sonatype Nexus Repository: A Deep Dive](https://blog.sonatype.com/nexus-repository-new-beta-rest-api-for-content). As of 3.6.1, the Administration section of Nexus Repository Manager UI includes a link to the REST API documentation right in the left-nav.

## More Examples

We are continuing to expand our examples and usability of the APIs. We’d love to hear what use cases you have solved using the APIs. Please **Reply as a Linked Topic** to share your solutions!

---

_[View the full topic](https://community.sonatype.com/t/advanced-use-cases-for-the-nexus-repository-manager-api/80)._
