135 lines
2.6 KiB
JSON
135 lines
2.6 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "e77bfc0a-79fb-4594-be9d-06c53989ad2a",
|
|
"name": "GPG API for Kigen Flow",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
|
"_exporter_id": "43522475",
|
|
"_collection_link": "https://chintan-533591.postman.co/workspace/Chintan's-Workspace~f62d7ab1-6c32-44dd-894e-371a5145aefa/collection/43522475-e77bfc0a-79fb-4594-be9d-06c53989ad2a?action=share&source=collection_link&creator=43522475"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "1. Check & Install GPG",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "http://3.29.0.254:8080/api/setup/gnupg",
|
|
"protocol": "http",
|
|
"host": [
|
|
"3",
|
|
"29",
|
|
"0",
|
|
"254"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"setup",
|
|
"gnupg"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "2. Generate GPG Key",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"RollxManager Platform\",\n \"email\": \"user@example.com\",\n \"comment\": \"PGP Key for Kigen\",\n \"passphrase\": \"your-secure-passphrase\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "http://3.29.0.254:8080/api/generate-key",
|
|
"protocol": "http",
|
|
"host": [
|
|
"3",
|
|
"29",
|
|
"0",
|
|
"254"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"generate-key"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "3. Download Public Key",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "http://3.29.0.254:8080/api/download/public-key?email=user@example.com",
|
|
"protocol": "http",
|
|
"host": [
|
|
"3",
|
|
"29",
|
|
"0",
|
|
"254"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"download",
|
|
"public-key"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "email",
|
|
"value": "user@example.com"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "4. Upload GPG Encrypted File & Decrypt",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "file",
|
|
"type": "file",
|
|
"src": "/path/to/your/zip.gpg"
|
|
},
|
|
{
|
|
"key": "passphrase",
|
|
"value": "your-secure-passphrase",
|
|
"type": "text"
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "http://3.29.0.254:8080/api/upload-decrypt",
|
|
"protocol": "http",
|
|
"host": [
|
|
"3",
|
|
"29",
|
|
"0",
|
|
"254"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"api",
|
|
"upload-decrypt"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
} |