User Tools

Site Tools


rest_api_parts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
rest_api_parts [2016/12/08 08:20] sweitmannrest_api_parts [2016/12/08 08:53] sweitmann
Line 1: Line 1:
-^**__Parts__** ||+====REST API for PARTS data==== 
 + 
 +^**__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| |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]]| 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| |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]]| 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]| |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]]| curl -X DELETE -H "Content-Type: application/xml" -d @part.xml https://localhost:3000/{databasename}/{parts_id}?token=123]]|
rest_api_parts.txt · Last modified: 2016/12/20 09:36 by sweitmann