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