Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision |
rest_api_parts [2016/12/08 08:05] – created sweitmann | rest_api_parts [2016/12/08 08:29] – sweitmann |
---|
^**__Parts__** || | ^**__GET__** || |
|View all parts in XML format|[[:api:api_view_all_parts_xml| https://localhost:3000/*databasename*/parts.xml?token=123]]| | |View all **PARTS** in XML format|[[:api:api_view_all_parts_xml| https://localhost:3000/{databasename}/parts.xml?token=123]]| |
|View all parts in JSON format|[[:api:api_view_all_parts_json| https://localhost:3000/*databasename*/parts.json?token=123]]| | |View all **PARTS** in JSON format|[[:api:api_view_all_parts_json| https://localhost:3000/{databasename}/parts.json?token=123]]| |
|View single part in XML format|[[:api:api_view_single_part_xml| https://localhost:3000/*databasename*/*part_id*.xml?token=123]]| | |View single **PART** in XML format|[[:api:api_view_single_part_xml| https://localhost:3000/{databasename}/{part_id}.xml?token=123]]| |
|View single part in JSON format|[[:api:api_view_single_part_json| https://localhost:3000/*databasename*/*part_id*.json?token=123]]| | |View single **PART** in JSON format|[[:api:api_view_single_part_json| https://localhost:3000/{databasename}/{part_id}.json?token=123]]| |
| ^**__UPDATE__** || |
| |Add or update **PART** with XML from command line|[[:api:api_update_part_xml| |
| curl -X POST -H "Content-Type: application/xml" -d @part.xml https://localhost:3000/{databasename}/parts?token=123]]| |
| |Add or update **PART** with JSON from command line|[[:api:api_update_part_json| |
| curl -X POST -H "Content-Type: application/xml" -d @part.json https://localhost:3000/{databasename}/parts?token=123]]| |
| ^**__DELETE__** || |
| |Delete **PART** from command line|[[:api:api_delete_part]| |
| curl -X DELETE -H "Content-Type: application/xml" -d @part.xml https://localhost:3000/{databasename}/{parts_id}?token=123]]| |