-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
3,277 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,3 +119,4 @@ dist | |
lib/ | ||
.env | ||
.DS_Stors | ||
db.sqlite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
# mongo-flow | ||
|
||
Effortlessly move data across MongoDB databases | ||
|
||
## Template | ||
|
||
This repo is created from the template [here](https://github.com/ryansonshine/typescript-npm-package-template) | ||
|
||
### Sample APIs | ||
|
||
#### Create a job | ||
|
||
```bash | ||
curl -X POST http://localhost:3000/v1/jobs \ | ||
-H "Content-Type: application/json" \ | ||
-d '{"source": "mongodb://localhost:27017/source", "destination": "mongodb://localhost:27017/destination", "collections": ["test"]}' | ||
``` | ||
|
||
#### Get all jobs | ||
|
||
```bash | ||
curl http://localhost:3000/v1/jobs | ||
``` |
Oops, something went wrong.