mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-07 20:37:44 +00:00
added postman links for newly created collections
This commit is contained in:
@@ -115,7 +115,7 @@ async function main() {
|
||||
try {
|
||||
const response = await getCollections();
|
||||
for (let collection of response.collections) {
|
||||
if (collection.name.includes(args[3])) {
|
||||
if (collection.name.includes(args[3]) && collection.id == "b108a9b1-e5ec-4a83-b4f5-02fd7126bbfc") {
|
||||
console.log(collection);
|
||||
const response = await deleteCollection(collection.id);
|
||||
console.log(response);
|
||||
@@ -123,6 +123,7 @@ async function main() {
|
||||
}
|
||||
const upload = await uploadCollection();
|
||||
console.log(upload);
|
||||
fs.writeFileSync('postman/links/' + args[3].toLowerCase() + '-link.txt','https://god.gw.postman.com/run-collection/' + upload.collection.uid + '?action=collection%2Ffork&collection-url=entityId%3D' + upload.collection.uid + '%26entityType%3Dcollection%26workspaceId%3D80af54be-a333-4712-af5e-41aa9eccbdd0')
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
1
postman/links/beta-link.txt
Normal file
1
postman/links/beta-link.txt
Normal file
@@ -0,0 +1 @@
|
||||
https://god.gw.postman.com/run-collection/23226990-18091672-ede8-4a27-a1b8-251d4bda2da1?action=collection%2Ffork&collection-url=entityId%3D23226990-18091672-ede8-4a27-a1b8-251d4bda2da1%26entityType%3Dcollection%26workspaceId%3D80af54be-a333-4712-af5e-41aa9eccbdd0
|
||||
1
postman/links/cc-link.txt
Normal file
1
postman/links/cc-link.txt
Normal file
@@ -0,0 +1 @@
|
||||
https://god.gw.postman.com/run-collection/23226990-4ec40b38-cdac-44bf-a07c-8606895d2233?action=collection%2Ffork&collection-url=entityId%3D23226990-4ec40b38-cdac-44bf-a07c-8606895d2233%26entityType%3Dcollection%26workspaceId%3D80af54be-a333-4712-af5e-41aa9eccbdd0
|
||||
1
postman/links/v2link.txt
Normal file
1
postman/links/v2link.txt
Normal file
@@ -0,0 +1 @@
|
||||
https://god.gw.postman.com/run-collection/23226990-624bf09b-7d1b-4ee6-9833-4b581b41db40?action=collection%2Ffork&collection-url=entityId%3D23226990-624bf09b-7d1b-4ee6-9833-4b581b41db40%26entityType%3Dcollection%26workspaceId%3D80af54be-a333-4712-af5e-41aa9eccbdd0
|
||||
1
postman/links/v3-link.txt
Normal file
1
postman/links/v3-link.txt
Normal file
@@ -0,0 +1 @@
|
||||
https://app.getpostman.com/run-collection/23226990-5f6a4855-8012-406f-9456-c8fa6311b080?action=collection%2Ffork&collection-url=entityId%3D23226990-5f6a4855-8012-406f-9456-c8fa6311b080%26entityType%3Dcollection%26workspaceId%3D80af54be-a333-4712-af5e-41aa9eccbdd0
|
||||
Reference in New Issue
Block a user