Created
May 20, 2023 11:50
-
-
Save gingerbeardman/f0b42502f3bc9344e92ce63afd4360d3 to your computer and use it in GitHub Desktop.
Linkding collection for Postman
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
{ | |
"info": { | |
"_postman_id": "356eda77-071b-42db-97f1-53f297f4cf4d", | |
"name": "Linkding", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
"_exporter_id": "26329767" | |
}, | |
"item": [ | |
{ | |
"name": "AUTH", | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "{{HOST}}/api/bookmarks/?limit=1", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"bookmarks", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "limit", | |
"value": "1", | |
"description": "most recent" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "LIST", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "{{HOST}}/api/bookmarks/?q=&limit=3&offset", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"bookmarks", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "q", | |
"value": "" | |
}, | |
{ | |
"key": "limit", | |
"value": "3", | |
"description": "max results, default 100" | |
}, | |
{ | |
"key": "offset", | |
"value": null, | |
"description": "index to start from" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "LIST ARCHIVED", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "{{HOST}}/api/bookmarks/archived/", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"bookmarks", | |
"archived", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "q", | |
"value": null, | |
"description": "search", | |
"disabled": true | |
}, | |
{ | |
"key": "limit", | |
"value": "", | |
"description": "max results, default 100", | |
"disabled": true | |
}, | |
{ | |
"key": "offset", | |
"value": null, | |
"description": "index to start from", | |
"disabled": true | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "RETRIEVE", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "{{HOST}}/api/bookmarks/1/", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"bookmarks", | |
"1", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "CREATE", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "formdata", | |
"formdata": [ | |
{ | |
"key": "url", | |
"value": "https://www.gingerbeardman.com", | |
"type": "text" | |
}, | |
{ | |
"key": "title", | |
"value": "TEST", | |
"type": "text" | |
}, | |
{ | |
"key": "description", | |
"value": "DESC HERE", | |
"type": "text" | |
}, | |
{ | |
"key": "is_archived", | |
"value": "false", | |
"type": "text" | |
}, | |
{ | |
"key": "unread", | |
"value": "false", | |
"type": "text" | |
}, | |
{ | |
"key": "shared", | |
"value": "true", | |
"type": "text" | |
}, | |
{ | |
"key": "tag_names", | |
"value": "tag1,tag2", | |
"type": "text" | |
} | |
] | |
}, | |
"url": { | |
"raw": "{{HOST}}/api/bookmarks/", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"bookmarks", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "UPDATE", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "PUT", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "formdata", | |
"formdata": [ | |
{ | |
"key": "url", | |
"value": "https://www.gingerbeardman.com", | |
"type": "text" | |
}, | |
{ | |
"key": "title", | |
"value": "NEW TEST", | |
"type": "text" | |
}, | |
{ | |
"key": "description", | |
"value": "NEW DESC HERE", | |
"type": "text" | |
}, | |
{ | |
"key": "is_archived", | |
"value": "false", | |
"type": "text", | |
"disabled": true | |
}, | |
{ | |
"key": "unread", | |
"value": "false", | |
"type": "text", | |
"disabled": true | |
}, | |
{ | |
"key": "shared", | |
"value": "false", | |
"type": "text" | |
}, | |
{ | |
"key": "tag_names", | |
"value": "tag1,tag2", | |
"type": "text", | |
"disabled": true | |
} | |
] | |
}, | |
"url": { | |
"raw": "{{HOST}}/api/bookmarks/4864/", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"bookmarks", | |
"4864", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "PATCH", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "PATCH", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "formdata", | |
"formdata": [ | |
{ | |
"key": "url", | |
"value": "https://www.gingerbeardman.com", | |
"type": "text", | |
"disabled": true | |
}, | |
{ | |
"key": "title", | |
"value": "MORE NEW TEST", | |
"type": "text" | |
}, | |
{ | |
"key": "description", | |
"value": "MORE NEW DESC HERE", | |
"type": "text" | |
}, | |
{ | |
"key": "is_archived", | |
"value": "false", | |
"type": "text", | |
"disabled": true | |
}, | |
{ | |
"key": "unread", | |
"value": "false", | |
"type": "text", | |
"disabled": true | |
}, | |
{ | |
"key": "shared", | |
"value": "true", | |
"type": "text" | |
}, | |
{ | |
"key": "tag_names", | |
"value": "tag1,tag2", | |
"type": "text" | |
} | |
] | |
}, | |
"url": { | |
"raw": "{{HOST}}/api/bookmarks/4864/", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"bookmarks", | |
"4864", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "ARCHIVE", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "formdata", | |
"formdata": [] | |
}, | |
"url": { | |
"raw": "{{HOST}}/api/bookmarks/4864/archive/", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"bookmarks", | |
"4864", | |
"archive", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "UNARCHIVE", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "formdata", | |
"formdata": [] | |
}, | |
"url": { | |
"raw": "{{HOST}}/api/bookmarks/4864/unarchive/", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"bookmarks", | |
"4864", | |
"unarchive", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "DELETE", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "DELETE", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "formdata", | |
"formdata": [] | |
}, | |
"url": { | |
"raw": "{{HOST}}/api/bookmarks/4865/", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"bookmarks", | |
"4865", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "TAGS", | |
"protocolProfileBehavior": { | |
"disableBodyPruning": true | |
}, | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "formdata", | |
"formdata": [] | |
}, | |
"url": { | |
"raw": "{{HOST}}/api/tags/?limit=1&offset=", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"tags", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "limit", | |
"value": "1" | |
}, | |
{ | |
"key": "offset", | |
"value": "" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "TAG RETRIEVE", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "{{HOST}}/api/tags/1/", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"tags", | |
"1", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "TAG CREATE", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Token {{TOKEN}}", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "formdata", | |
"formdata": [ | |
{ | |
"key": "name", | |
"value": "tagtest", | |
"type": "text" | |
} | |
] | |
}, | |
"url": { | |
"raw": "{{HOST}}/api/tags/", | |
"host": [ | |
"{{HOST}}" | |
], | |
"path": [ | |
"api", | |
"tags", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
} | |
], | |
"event": [ | |
{ | |
"listen": "prerequest", | |
"script": { | |
"type": "text/javascript", | |
"exec": [ | |
"" | |
] | |
} | |
}, | |
{ | |
"listen": "test", | |
"script": { | |
"type": "text/javascript", | |
"exec": [ | |
"" | |
] | |
} | |
} | |
], | |
"variable": [ | |
{ | |
"key": "HOST", | |
"value": "https://bookmarks.example.com", | |
"type": "string" | |
}, | |
{ | |
"key": "TOKEN", | |
"value": "1234567890ABCDEF1234567890ABCDEF12345678", | |
"type": "string" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instructions
you will need to edit two variables at the bottom
HOST
your Linkding domainTOKEN
your Linkding Auth tokenNotes
Authorization: Token <Token>
rather thanAuthorization: Bearer <Token>
so I had to include Auth as a header with each item in the collection