|
| 1 | +.. _rm-rest-api: |
| 2 | + |
| 3 | +============================ |
| 4 | +Relational Migrator REST API |
| 5 | +============================ |
| 6 | + |
| 7 | +.. facet:: |
| 8 | + :name: genre |
| 9 | + :values: tutorial |
| 10 | + |
| 11 | +.. meta:: |
| 12 | + :description: Learn about the MongoDB Relational Migrator REST API and how to use it. |
| 13 | + :keywords: data migration, rest api, open api |
| 14 | + |
| 15 | +.. contents:: On this page |
| 16 | + :local: |
| 17 | + :backlinks: none |
| 18 | + :depth: 1 |
| 19 | + :class: singlecol |
| 20 | + |
| 21 | +The Relational Migrator REST API provides you with programmatic access |
| 22 | +to Relation Migrator with HTTPS endpoints. The REST API is a |
| 23 | +Relational Migrator service between your application and your source and |
| 24 | +destination databases that you can send requests to manage your sync jobs. |
| 25 | + |
| 26 | +You don't need to install any additional extensions or packages to use |
| 27 | +the Relational Migrator REST API. The functionality is part of the |
| 28 | +Relational Migrator product. The REST API runs on the same port that |
| 29 | +you access the application on (either ``8278``, ``8080``, or ``443``). |
| 30 | + |
| 31 | +How the REST API Works |
| 32 | +---------------------- |
| 33 | + |
| 34 | +The Relational Migrator REST API: |
| 35 | + |
| 36 | +- Runs on the client computer or server that the Relation Migrator |
| 37 | + application is installed on. |
| 38 | +- The Rest API is controlled by the host adapter binding. |
| 39 | +- The Relational Migrator REST API **does not** currently support |
| 40 | + authentication. |
| 41 | + |
| 42 | +When to Use REST API |
| 43 | +-------------------- |
| 44 | + |
| 45 | +Use the Relational Migrator REST API when: |
| 46 | + |
| 47 | +- You want to use a task scheduler such as |
| 48 | + `CRON <https://en.wikipedia.org/wiki/Cron>`__ and define dynamic |
| 49 | + :ref:`table filters <rm-table-filters>` within a project. For example, |
| 50 | + using a table filter with |
| 51 | + ``WHERE DATEDIFF(CURDATE(), last_modified) <= 1`` to batch migrate |
| 52 | + data on a cadence from your relational database to MongoDB. |
| 53 | + |
| 54 | +- You want to programmatically create Relational Migrator sync jobs |
| 55 | + dynamically. For example, using connection strings from |
| 56 | + multiple databases without manually configuring them in the GUI. |
| 57 | + |
| 58 | +- You generally prefer scripting your workflows instead of using a GUI. |
| 59 | + |
| 60 | +Learn More |
| 61 | +---------- |
| 62 | + |
| 63 | +For Relational Migrator REST API endpoints, example |
| 64 | +requests, and responses, see :ref:`Endpoints <rm-api-resources-spec>`. |
| 65 | + |
| 66 | +.. toctree:: |
| 67 | + :titlesonly: |
| 68 | + |
| 69 | + {+migrator-api-endpoints+} </api-docs/rest-api-spec> |
0 commit comments