-
-
Save diaraujo13/20d4f7d00f7158b5d658b9a4586f9a3f to your computer and use it in GitHub Desktop.
GLPI API - Basic calls to tickets endpoint
This file contains hidden or 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
{ | |
"variables": [], | |
"info": { | |
"name": "GLPI API", | |
"_postman_id": "93d36159-3fa9-bed0-ff15-ad4cc5cc6abb", | |
"description": "", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Init Session", | |
"request": { | |
"url": "http://200.133.4.158/apirest.php/Ticket/1/", | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "App-Token", | |
"value": "hjmba48mw0yn08unueo3gg4eozc8w9i5rpy65w47", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Authorization", | |
"value": "Basic aXphaWFzOml6YWlhcw==", | |
"description": "" | |
}, | |
{ | |
"key": "Session-Token", | |
"value": "7j2gs9r99fq2hlt9t4sanrd3j6", | |
"description": "" | |
} | |
], | |
"body": {}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get all tickets", | |
"request": { | |
"url": "http://200.133.4.158/apirest.php/Ticket", | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "App-Token", | |
"value": "hjmba48mw0yn08unueo3gg4eozc8w9i5rpy65w47", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Authorization", | |
"value": "Basic aXphaWFzOml6YWlhcw==", | |
"description": "" | |
}, | |
{ | |
"key": "Session-Token", | |
"value": "7j2gs9r99fq2hlt9t4sanrd3j6", | |
"description": "" | |
} | |
], | |
"body": {}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get current user Id", | |
"request": { | |
"url": "http://200.133.4.158/apirest.php/getActiveProfile", | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "App-Token", | |
"value": "hjmba48mw0yn08unueo3gg4eozc8w9i5rpy65w47", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Authorization", | |
"value": "Basic aXphaWFzOml6YWlhcw==", | |
"description": "" | |
}, | |
{ | |
"key": "Session-Token", | |
"value": "7j2gs9r99fq2hlt9t4sanrd3j6", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"input\": {\n\t\n\t \n \"tickets_id\": 1, \"content\": \"Resolvido asdasd\"\n \n\t}\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get current user details", | |
"request": { | |
"url": "http://200.133.4.158/apirest.php/User/8", | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "App-Token", | |
"value": "hjmba48mw0yn08unueo3gg4eozc8w9i5rpy65w47", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Authorization", | |
"value": "Basic aXphaWFzOml6YWlhcw==", | |
"description": "" | |
}, | |
{ | |
"key": "Session-Token", | |
"value": "7j2gs9r99fq2hlt9t4sanrd3j6", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"input\": {\n\t\n\t \n \"tickets_id\": 1, \"content\": \"Resolvido asdasd\"\n \n\t}\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get all ticket with ID 1", | |
"request": { | |
"url": "http://200.133.4.158/apirest.php/Ticket/1", | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "App-Token", | |
"value": "hjmba48mw0yn08unueo3gg4eozc8w9i5rpy65w47", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Authorization", | |
"value": "Basic aXphaWFzOml6YWlhcw==", | |
"description": "" | |
}, | |
{ | |
"key": "Session-Token", | |
"value": "7j2gs9r99fq2hlt9t4sanrd3j6", | |
"description": "" | |
} | |
], | |
"body": {}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get all ticket with ID 1 TicketFollowup", | |
"request": { | |
"url": "http://200.133.4.158/apirest.php/Ticket/1/TicketFollowup", | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "App-Token", | |
"value": "hjmba48mw0yn08unueo3gg4eozc8w9i5rpy65w47", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Authorization", | |
"value": "Basic aXphaWFzOml6YWlhcw==", | |
"description": "" | |
}, | |
{ | |
"key": "Session-Token", | |
"value": "7j2gs9r99fq2hlt9t4sanrd3j6", | |
"description": "" | |
} | |
], | |
"body": {}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Add Ticket - Retorna ID", | |
"request": { | |
"url": "http://200.133.4.158/apirest.php/Ticket/", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "App-Token", | |
"value": "hjmba48mw0yn08unueo3gg4eozc8w9i5rpy65w47", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Authorization", | |
"value": "Basic aXphaWFzOml6YWlhcw==", | |
"description": "" | |
}, | |
{ | |
"key": "Session-Token", | |
"value": "7j2gs9r99fq2hlt9t4sanrd3j6", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"input\": {\n\t\n\t \n\t\t\"name\": \"TESTE IZAIAS Derramei café no computador\",\n \"content\": \"Resolvido asdasd\",\n \"urgency\": 5,\n\t\t\"impact\": 5,\n\t\t\"itilcategories_id\": 0,\n\t\t\"type\": 2\n\t\t}\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Add TicketFollowUp ao Ticket com ID 1", | |
"request": { | |
"url": "http://200.133.4.158/apirest.php/Ticket/1/TicketFollowup", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "App-Token", | |
"value": "hjmba48mw0yn08unueo3gg4eozc8w9i5rpy65w47", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Authorization", | |
"value": "Basic aXphaWFzOml6YWlhcw==", | |
"description": "" | |
}, | |
{ | |
"key": "Session-Token", | |
"value": "7j2gs9r99fq2hlt9t4sanrd3j6", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"input\": {\n\t\n\t \n \"tickets_id\": 1, \"content\": \"Resolvido asdasd\"\n \n\t}\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get all category", | |
"request": { | |
"url": "http://200.133.4.158/apirest.php/ITILCategory", | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "App-Token", | |
"value": "hjmba48mw0yn08unueo3gg4eozc8w9i5rpy65w47", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Authorization", | |
"value": "Basic aXphaWFzOml6YWlhcw==", | |
"description": "" | |
}, | |
{ | |
"key": "Session-Token", | |
"value": "7j2gs9r99fq2hlt9t4sanrd3j6", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"input\": {\n\t\n\t \n \"tickets_id\": 1, \"content\": \"Resolvido asdasd\"\n \n\t}\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get all location", | |
"request": { | |
"url": "http://200.133.4.158/apirest.php/Location", | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "App-Token", | |
"value": "hjmba48mw0yn08unueo3gg4eozc8w9i5rpy65w47", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Authorization", | |
"value": "Basic aXphaWFzOml6YWlhcw==", | |
"description": "" | |
}, | |
{ | |
"key": "Session-Token", | |
"value": "7j2gs9r99fq2hlt9t4sanrd3j6", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"input\": {\n\t\n\t \n \"tickets_id\": 1, \"content\": \"Resolvido asdasd\"\n \n\t}\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Search criteria for Tickets