Skip to content

Instantly share code, notes, and snippets.

@rodcordeiro
Forked from diaraujo13/json
Last active September 7, 2021 01:44
Show Gist options
  • Select an option

  • Save rodcordeiro/47a925d5426456a871626c0f05e219c0 to your computer and use it in GitHub Desktop.

Select an option

Save rodcordeiro/47a925d5426456a871626c0f05e219c0 to your computer and use it in GitHub Desktop.
GLPI API - Basic calls to tickets endpoint
{
"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