mirror of
https://github.com/caprover/caprover
synced 2026-05-03 10:10:29 +00:00
Added Postman collcetion
This commit is contained in:
+31
-25
@@ -7,13 +7,13 @@ Please note we have a code of conduct, please follow it in all your interactions
|
||||
|
||||
## IMPORTANT: CapRover Goals & Scope
|
||||
|
||||
Since the birth of CapRover, there has been many contributions and suggestions that shaped CapRover as we know it today. One of the very important factor in the contribution you make is to stick with CapRover design philosophy.- CapRover is not an enterprise grade application like Kubernetes. *Do not* patch it with half-done features that make it look like one - it will eventually fail as we don't have resources to support such features.- CapRover scope is a helper around Docker, nginx and Let's Encrypt.
|
||||
Since the birth of CapRover, there has been many contributions and suggestions that shaped CapRover as we know it today. One of the very important factor in the contribution you make is to stick with CapRover design philosophy.- CapRover is not an enterprise grade application like Kubernetes. _Do not_ patch it with half-done features that make it look like one - it will eventually fail as we don't have resources to support such features.- CapRover scope is a helper around Docker, nginx and Let's Encrypt.
|
||||
|
||||
The goal is to make the common use-cases exposed via simple controls on UI while allowing further customizations to be done through hooks and scripts. If a new feature is doable via the existing features, or a basic tool, do not add it to CapRover. We do not want to bloat this application. One example is: "Add a flag to customize the placement constraints of containers". This is definitely doable in Docker, but we don't want to mirror every single functionality of Docker to CapRover. If we do that, CapRover becomes a very hard to maintain project. Instead we should add customization hooks for these advanced and rare use cases. For example, instead of mirroring every single nginx config, we added the ability of customizing the nginx config for advanced users.- Last but not least AVOID LARGE PULL REQUESTS at all cost as they won't get reviewed unless they are discussed in the Slack channel beforehand.
|
||||
|
||||
## Pull Request Process
|
||||
|
||||
1. IF APPLICABLE: Update the docs (https://github.com/caprover/caprover-website) with details of changes to the interface, this includes new environment
|
||||
1. IF APPLICABLE: Update the docs (https://github.com/caprover/caprover-website) with details of changes to the interface, this includes new environment
|
||||
variables, exposed ports, useful file locations and container parameters.
|
||||
2. Make sure your commit comments are self explanatory.
|
||||
3. Discuss the changes you want to make beforehand.
|
||||
@@ -21,13 +21,13 @@ The goal is to make the common use-cases exposed via simple controls on UI while
|
||||
5. To keep the process simple with just a few contributors, development happens directly on the master branch
|
||||
and releases will be deployed on the same branch.
|
||||
6. By creating a Pull Request, you agree to all terms in https://github.com/caprover/caprover/blob/master/contrib.md
|
||||
|
||||
## Running dev environment
|
||||
|
||||
### Running backend dev environment
|
||||
|
||||
First, you need a Captain instance running in debug mode, this can be a remote server, a VM on your local machine,
|
||||
or your local machine itself. Needless to say, Docker is required (same minimum version as mentioned in README). Ubuntu is the best dev environment for CapRover.
|
||||
|
||||
> Docker for Mac users: You need to add `/captain` to shared paths.
|
||||
> Docker for Mac users: You need to add `/captain` to shared paths.
|
||||
> To do so, click on the Docker icon -> Preferences -> File Sharing and add `/captain`
|
||||
> This is not possible in Catalina or above versions. You can try your luck by changing `CAPTAIN_BASE_DIRECTORY` in `src/utils/CaptainConstants.ts` and in `dev-scripts/dev-clean-run-as-dev.sh` but it might be best to develop in a linux VM for best results.
|
||||
|
||||
@@ -38,18 +38,21 @@ $ npm install
|
||||
$ npm run build
|
||||
$ ./dev-scripts/dev-clean-run-as-dev.sh
|
||||
```
|
||||
|
||||
You are good to go! You can run the following line to see the logs for the back-end service.
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
The main differences between the release and debug mode are:
|
||||
- docker image is created from the local source file, instead of getting pulled from Docker hub
|
||||
- security is much weaker is debug due to a static salt
|
||||
- self health monitoring is disabled in debug so that we can see possible crashes
|
||||
- same origin policy is disabled in debug mode to make front end development easier
|
||||
- an additional endpoint is available at `/force-exit` which force restarts the backend service
|
||||
- static resources (including front end app) are not being served in debug build.
|
||||
|
||||
- docker image is created from the local source file, instead of getting pulled from Docker hub
|
||||
- security is much weaker is debug due to a static salt
|
||||
- self health monitoring is disabled in debug so that we can see possible crashes
|
||||
- same origin policy is disabled in debug mode to make front end development easier
|
||||
- an additional endpoint is available at `/force-exit` which force restarts the backend service
|
||||
- static resources (including front end app) are not being served in debug build.
|
||||
|
||||
Captain by default uses `captain.localhost` as its root domain. It's not always needed, but if you need a root
|
||||
domain for your development, you can simply run a local DNS server on your local machine and point
|
||||
@@ -61,8 +64,10 @@ And add this line to it: `address=/captain.localhost/192.168.1.2` where `192.168
|
||||
To make sure you have dnsmasq, you can run `which dnsmasq` on your terminal, if it's available,
|
||||
path of it will be printed on the terminal, otherwise, there won't be anything printed on your terminal.
|
||||
|
||||
To test the API, you can import the Postman collection JSON in `./dev-scripts` directory.
|
||||
|
||||
### front end development:
|
||||
|
||||
See https://github.com/caprover/caprover-frontend
|
||||
|
||||
### CLI development:
|
||||
@@ -70,13 +75,14 @@ See https://github.com/caprover/caprover-frontend
|
||||
See https://github.com/caprover/caprover-cli
|
||||
|
||||
### Backend development:
|
||||
|
||||
Start the debug build for the backend service as explained above. To see any changes you make,
|
||||
first save the changes, then you need to restart the service either by sending a request to `/force-exit` endpoint,
|
||||
or by running `npm run dev`.
|
||||
|
||||
### Security Issues
|
||||
Security issues are high priority and they will be addressed immediately. If you find a security issue, please do not post as a public issue, instead, please email it to us: security at caprover dot com.
|
||||
|
||||
Security issues are high priority and they will be addressed immediately. If you find a security issue, please do not post as a public issue, instead, please email it to us: security at caprover dot com.
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
@@ -94,22 +100,22 @@ orientation.
|
||||
Examples of behavior that contributes to creating a positive environment
|
||||
include:
|
||||
|
||||
* Using welcoming and inclusive language
|
||||
* Being respectful of differing viewpoints and experiences
|
||||
* Gracefully accepting constructive criticism
|
||||
* Focusing on what is best for the community
|
||||
* Showing empathy towards other community members
|
||||
- Using welcoming and inclusive language
|
||||
- Being respectful of differing viewpoints and experiences
|
||||
- Gracefully accepting constructive criticism
|
||||
- Focusing on what is best for the community
|
||||
- Showing empathy towards other community members
|
||||
|
||||
Examples of unacceptable behavior by participants include:
|
||||
|
||||
* The use of sexualized language or imagery and unwelcome sexual attention or
|
||||
advances
|
||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or electronic
|
||||
address, without explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
- The use of sexualized language or imagery and unwelcome sexual attention or
|
||||
advances
|
||||
- Trolling, insulting/derogatory comments, and personal or political attacks
|
||||
- Public or private harassment
|
||||
- Publishing others' private information, such as a physical or electronic
|
||||
address, without explicit permission
|
||||
- Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
### Our Responsibilities
|
||||
|
||||
|
||||
@@ -0,0 +1,876 @@
|
||||
{
|
||||
"info": {
|
||||
"_postman_id": "5152aadd-9cc9-fae5-ca8a-f2c51f9797a2",
|
||||
"name": "CapRover",
|
||||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
||||
},
|
||||
"item": [
|
||||
{
|
||||
"name": "RUN FIRST: Get Auth Token",
|
||||
"event": [
|
||||
{
|
||||
"listen": "prerequest",
|
||||
"script": {
|
||||
"exec": [
|
||||
"postman.setGlobalVariable(\"baseUrl\", \"http://captain.captain.localhost/api/v2\");",
|
||||
"// ",
|
||||
""
|
||||
],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "test",
|
||||
"script": {
|
||||
"exec": [
|
||||
"var jsonData = JSON.parse(responseBody);",
|
||||
"tests[\"Your test name\"] = jsonData.status === 100;",
|
||||
"",
|
||||
"postman.setGlobalVariable(\"captain_auth_token\", jsonData.data.token);",
|
||||
""
|
||||
],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
}
|
||||
],
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/x-www-form-urlencoded"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "urlencoded",
|
||||
"urlencoded": [
|
||||
{
|
||||
"key": "password",
|
||||
"value": "captain42",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/login",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["login"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "FORCE RESTART",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [],
|
||||
"body": {
|
||||
"mode": "formdata",
|
||||
"formdata": []
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/force-exit",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["force-exit"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Change Password",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"oldPassword\": \"captain42\",\n \"newPassword\": \"captain4242\"\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/changepassword",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "changepassword"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "POST Custom Domain",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"rootDomain\": \"test.x.com\"\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/system/changerootdomain",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "system", "changerootdomain"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "POST Enable SSL Captain",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"emailAddress\": \"noreply@gmail.com\"\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/system/enablessl",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "system", "enablessl"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "POST update NetData",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"netDataInfo\": {\n \t\"isEnabled\":false\n }\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/system/netdata/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "system", "netdata", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Join a Node",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"nodeType\": \"worker\",\n \"privateKey\": \"-----BEGIN RSA PRIVATE KEY-----\\xxxxxxxxxxxxxxxxxx\\n-----END RSA PRIVATE KEY-----\",\n \"captainIpAddress\": \"200.200.200.200\",\n \"remoteNodeIpAddress\": \"100.100.100.100\",\n \"remoteUserName\": \"root\"\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/system/nodes",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "system", "nodes"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET appDefinitions",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/apps/appDefinitions/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "apps", "appDefinitions", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET OneClick Repos List",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/oneclick/repositories/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "oneclick", "repositories", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET OneClick Repos DELETE",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"repositoryUrl\":\"https://oneclickapps.caprover.com\"\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/oneclick/repositories/delete/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "oneclick", "repositories", "delete", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET OneClick Repos INSERT",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"repositoryUrl\":\"https://oneclickapps.caprover.com\"\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/oneclick/repositories/insert/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "oneclick", "repositories", "insert", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET OneClick List",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/oneclick/template/list/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "oneclick", "template", "list", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET OneClick MySQL",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/oneclick/template/app?appName=mysql&baseDomain=https%3A%2F%2Foneclickapps.caprover.com",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "oneclick", "template", "app"],
|
||||
"query": [
|
||||
{
|
||||
"key": "appName",
|
||||
"value": "mysql"
|
||||
},
|
||||
{
|
||||
"key": "baseDomain",
|
||||
"value": "https%3A%2F%2Foneclickapps.caprover.com"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET app logs",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/apps/appData/q1/logs",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "apps", "appData", "q1", "logs"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET Docker Regs",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/registries/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "registries", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET nodes",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/system/nodes",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "system", "nodes"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Create Backup",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/system/createbackup",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "system", "createbackup"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET unusedImages",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/apps/appDefinitions/unusedImages",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "apps", "appDefinitions", "unusedImages"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET captainInfo",
|
||||
"event": [
|
||||
{
|
||||
"listen": "prerequest",
|
||||
"script": {
|
||||
"exec": [""],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
}
|
||||
],
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/system/info",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "system", "info"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET versionInfo",
|
||||
"event": [
|
||||
{
|
||||
"listen": "prerequest",
|
||||
"script": {
|
||||
"exec": [""],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
}
|
||||
],
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/system/versionInfo",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "system", "versionInfo"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "GET loadBalancerInfo",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/system/loadbalancerinfo",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "system", "loadbalancerinfo"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "POST appDefinitions REGISTER",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"appName\": \"my-first-app-001\"\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/apps/appDefinitions/register/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "apps", "appDefinitions", "register", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "POST appDefinitions DELETE",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"appName\": \"my-first-app-001\"\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/apps/appDefinitions/delete/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "apps", "appDefinitions", "delete", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "POST appDefinitions UPDATE",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"appName\": \"test1\",\n \"instanceCount\":\"1\",\n \"notExposeAsWebApp\":true,\n \"ports\":[\n \t{\n \t\t\"containerPort\":\"1000\",\n \t\t\"hostPort\":\"6000\"\n \t}]\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/appDefinitions/update/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "appDefinitions", "update", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "POST Enable SSL for subdomain",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"appName\": \"my-first-app-001\"\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/appDefinitions/enablessl/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "appDefinitions", "enablessl", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "POST Custom App Domain",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"appName\": \"my-first-app-001\",\n \"customDomain\": \"y.x.com\"\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/appDefinitions/customdomain/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "appDefinitions", "customdomain", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "POST Custom App Domain REMOVE",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"appName\": \"my-first-app-001\",\n \"customDomain\": \"y.x.com\"\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/appDefinitions/removecustomdomain/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "appDefinitions", "removecustomdomain", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "POST Custom App Domain SSL",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"appName\": \"my-first-app-001\",\n \"customDomain\": \"x.y.com\"\n}"
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/appDefinitions/customdomainssl/",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "appDefinitions", "customdomainssl", ""]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "POST appData",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "x-captain-auth",
|
||||
"value": "{{captain_auth_token}}"
|
||||
},
|
||||
{
|
||||
"key": "x-namespace",
|
||||
"value": "captain"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "formdata",
|
||||
"formdata": [
|
||||
{
|
||||
"key": "sourceFile",
|
||||
"type": "file",
|
||||
"src": []
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{baseUrl}}/user/appData/my-first-app-001",
|
||||
"host": ["{{baseUrl}}"],
|
||||
"path": ["user", "appData", "my-first-app-001"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user