Created
October 28, 2019 03:10
-
-
Save monroy95/ae937c4b44f955a40f18377e7247d186 to your computer and use it in GitHub Desktop.
API - Frappe Training
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": "b9dc66a6-ce79-4b06-8914-2da3f06f7235", | |
"name": "Frappe Training", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [{ | |
"name": "AUTH1", | |
"request": { | |
"auth": { | |
"type": "basic", | |
"basic": [{ | |
"key": "password", | |
"value": "dce9ce6f330818c", | |
"type": "string" | |
}, | |
{ | |
"key": "username", | |
"value": "80c40db2fdd3f0f", | |
"type": "string" | |
} | |
] | |
}, | |
"method": "POST", | |
"header": [], | |
"url": { | |
"raw": "192.168.0.100/api/method/frappe.auth.get_logged_user", | |
"host": [ | |
"192", | |
"168", | |
"0", | |
"100" | |
], | |
"path": [ | |
"api", | |
"method", | |
"frappe.auth.get_logged_user" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "OBTENER LISTADO FACS", | |
"request": { | |
"auth": { | |
"type": "basic", | |
"basic": [{ | |
"key": "password", | |
"value": "dce9ce6f330818c", | |
"type": "string" | |
}, | |
{ | |
"key": "username", | |
"value": "80c40db2fdd3f0f", | |
"type": "string" | |
} | |
] | |
}, | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "192.168.0.100/api/resource/Sales Invoice", | |
"host": [ | |
"192", | |
"168", | |
"0", | |
"100" | |
], | |
"path": [ | |
"api", | |
"resource", | |
"Sales Invoice" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "OBTENER LISTADO ITEMS", | |
"request": { | |
"auth": { | |
"type": "basic", | |
"basic": [{ | |
"key": "password", | |
"value": "dce9ce6f330818c", | |
"type": "string" | |
}, | |
{ | |
"key": "username", | |
"value": "80c40db2fdd3f0f", | |
"type": "string" | |
} | |
] | |
}, | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "192.168.0.100/api/resource/Item?fields=[\"item_code\", \"item_name\"]", | |
"host": [ | |
"192", | |
"168", | |
"0", | |
"100" | |
], | |
"path": [ | |
"api", | |
"resource", | |
"Item" | |
], | |
"query": [{ | |
"key": "fields", | |
"value": "[\"item_code\", \"item_name\"]" | |
}] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "CRUD C", | |
"request": { | |
"auth": { | |
"type": "basic", | |
"basic": [{ | |
"key": "password", | |
"value": "dce9ce6f330818c", | |
"type": "string" | |
}, | |
{ | |
"key": "username", | |
"value": "80c40db2fdd3f0f", | |
"type": "string" | |
} | |
] | |
}, | |
"method": "POST", | |
"header": [{ | |
"key": "Content-Type", | |
"name": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
}], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"description\": \"New ToDo\"}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "192.168.0.100/api/resource/ToDo", | |
"host": [ | |
"192", | |
"168", | |
"0", | |
"100" | |
], | |
"path": [ | |
"api", | |
"resource", | |
"ToDo" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "CRUD C Factura", | |
"request": { | |
"auth": { | |
"type": "basic", | |
"basic": [{ | |
"key": "password", | |
"value": "dce9ce6f330818c", | |
"type": "string" | |
}, | |
{ | |
"key": "username", | |
"value": "80c40db2fdd3f0f", | |
"type": "string" | |
} | |
] | |
}, | |
"method": "POST", | |
"header": [{ | |
"key": "Content-Type", | |
"name": "Content-Type", | |
"type": "text", | |
"value": "application/json" | |
}], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"doctype\": \"Sales Invoice\",\n \"title\": \"Factura API\",\n \"customer\": \"Juan Perez\",\n \"naming_series\": \"TEST-.\",\n \"company\": \"SHS\",\n \"items\": [\n {\n \"item_code\": \"SW-001\",\n \"rate\": 12,\n \"qty\": 2,\n \"description\": \"Factura desde la API\"\n }\n ],\n \"apply_discount_on\": \"Grand Total\",\n \"taxes\": [\n {\n \"charge_type\": \"On Net Total\",\n \"account_head\": \"IVA - S\",\n \"description\": \"IVA @ 12.0\",\n \"included_in_print_rate\": 1,\n \"rate\": 12\n }\n ],\n \"docstatus\": 0\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "192.168.0.100/api/resource/Sales Invoice", | |
"host": [ | |
"192", | |
"168", | |
"0", | |
"100" | |
], | |
"path": [ | |
"api", | |
"resource", | |
"Sales Invoice" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "CRUD R Factura", | |
"protocolProfileBehavior": { | |
"disableBodyPruning": true | |
}, | |
"request": { | |
"auth": { | |
"type": "basic", | |
"basic": [{ | |
"key": "password", | |
"value": "dce9ce6f330818c", | |
"type": "string" | |
}, | |
{ | |
"key": "username", | |
"value": "80c40db2fdd3f0f", | |
"type": "string" | |
} | |
] | |
}, | |
"method": "GET", | |
"header": [{ | |
"key": "Content-Type", | |
"name": "Content-Type", | |
"type": "text", | |
"value": "application/json" | |
}], | |
"body": { | |
"mode": "raw", | |
"raw": "", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "192.168.0.100/api/resource/Sales Invoice/TEST-00003", | |
"host": [ | |
"192", | |
"168", | |
"0", | |
"100" | |
], | |
"path": [ | |
"api", | |
"resource", | |
"Sales Invoice", | |
"TEST-00003" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "CRUD U Task", | |
"request": { | |
"auth": { | |
"type": "basic", | |
"basic": [{ | |
"key": "password", | |
"value": "dce9ce6f330818c", | |
"type": "string" | |
}, | |
{ | |
"key": "username", | |
"value": "80c40db2fdd3f0f", | |
"type": "string" | |
} | |
] | |
}, | |
"method": "PUT", | |
"header": [{ | |
"key": "Content-Type", | |
"name": "Content-Type", | |
"type": "text", | |
"value": "application/json" | |
}], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"description\": \"New description\",\n \"status\": \"Working\"\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "192.168.0.100/api/resource/Task/TASK-2019-00001", | |
"host": [ | |
"192", | |
"168", | |
"0", | |
"100" | |
], | |
"path": [ | |
"api", | |
"resource", | |
"Task", | |
"TASK-2019-00001" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "CRUD D Task", | |
"request": { | |
"auth": { | |
"type": "basic", | |
"basic": [{ | |
"key": "password", | |
"value": "dce9ce6f330818c", | |
"type": "string" | |
}, | |
{ | |
"key": "username", | |
"value": "80c40db2fdd3f0f", | |
"type": "string" | |
} | |
] | |
}, | |
"method": "DELETE", | |
"header": [{ | |
"key": "Content-Type", | |
"name": "Content-Type", | |
"type": "text", | |
"value": "application/json" | |
}], | |
"url": { | |
"raw": "192.168.0.100/api/resource/Task/TASK-2019-00002", | |
"host": [ | |
"192", | |
"168", | |
"0", | |
"100" | |
], | |
"path": [ | |
"api", | |
"resource", | |
"Task", | |
"TASK-2019-00002" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "METHODS", | |
"request": { | |
"auth": { | |
"type": "basic", | |
"basic": [{ | |
"key": "password", | |
"value": "dce9ce6f330818c", | |
"type": "string" | |
}, | |
{ | |
"key": "username", | |
"value": "80c40db2fdd3f0f", | |
"type": "string" | |
} | |
] | |
}, | |
"method": "POST", | |
"header": [{ | |
"key": "Content-Type", | |
"name": "Content-Type", | |
"type": "text", | |
"value": "application/json" | |
}], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"seleccion\" : 1\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "http://192.168.0.100/api/method/exchange_rate_banguat.api.api_test", | |
"protocol": "http", | |
"host": [ | |
"192", | |
"168", | |
"0", | |
"100" | |
], | |
"path": [ | |
"api", | |
"method", | |
"exchange_rate_banguat.api.api_test" | |
] | |
} | |
}, | |
"response": [] | |
} | |
], | |
"protocolProfileBehavior": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment