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
rest_api_parts [2016/12/08 08:20] sweitmannrest_api_parts [2016/12/20 09:36] (current) sweitmann
Line 1: Line 1:
-^**__Parts__** || +====REST API for ITEMS data==== 
-|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]]| +^**__GET__** || 
-|View single part in XML format|[[:api:api_view_single_part_xml| https://localhost:3000/{databasename}/{part_id}.xml?token=123]]| +|View all parts in XML format|[[:api:api_view_all_items_xml| https://localhost:3000/{databasename}/items.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 all items in JSON format|[[:api:api_view_all_items_json| https://localhost:3000/{databasename}/items.json?token=123]]| 
-|Add or update part with XML from command line|[[:api:api_update_part_xml+|View single item in XML format|[[:api:api_view_single_item_xml| https://localhost:3000/{databasename}/{item_id}.xml?token=123]]| 
-curl -X POST -H "Content-Type: application/xml" -d @part.xml https://localhost:3000/{databasename}/parts?token=123]]| +|View single item in JSON format|[[:api:api_view_single_part_json| https://localhost:3000/{databasename}/{part_id}.json?token=123]]
-|Add or update part with JSON from command line|[[:api:api_update_part_json+^**__UPDATE__** |
-curl -X POST -H "Content-Type: application/xml" -d @part.json https://localhost:3000/{databasename}/parts?token=123]]| +|Add or update item with XML from command line|[[:api:api_update_item_xml
-|Delete part from command line|[[:api:api_delete_part]| +curl -X POST -H "Content-Type: application/xml" -d @part.xml https://localhost:3000/{databasename}/items?token=123]]| 
-curl -X DELETE -H "Content-Type: application/xml" -d @part.xml https://localhost:3000/{databasename}/{parts_id}?token=123]]|+|Add or update item with JSON from command line|[[:api:api_update_item_json
 +curl -X POST -H "Content-Type: application/xml" -d @part.json https://localhost:3000/{databasename}/items?token=123]]
 +^**__DELETE__** |
 +|Delete item from command line|[[:api:api_delete_item]| 
 +curl -X DELETE -H "Content-Type: application/xml" -d @item.xml https://localhost:3000/{databasename}/{item_id}?token=123]]|
rest_api_parts.1481185254.txt.gz · Last modified: 2016/12/08 08:20 by sweitmann