User Tools

Site Tools


rest_api_items

Differences

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

Link to this comparison view

rest_api_items [2016/12/20 09:37] (current)
sweitmann created
Line 1: Line 1:
 +====REST API for ITEMS data====
  
 +^**__GET__** ||
 +|View all parts in XML format|[[:api:api_view_all_items_xml| https://localhost:3000/{databasename}/items.xml?token=123]]|
 +|View all items in JSON format|[[:api:api_view_all_items_json| https://localhost:3000/{databasename}/items.json?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 item in JSON format|[[:api:api_view_single_part_json| https://localhost:3000/{databasename}/{part_id}.json?token=123]]|
 +^**__UPDATE__** ||
 +|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}/items?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_items.txt ยท Last modified: 2016/12/20 09:37 by sweitmann