rest_api_items
REST API for ITEMS data
GET | |
---|---|
View all parts in XML format | https://localhost:3000/{databasename}/items.xml?token=123 |
View all items in JSON format | https://localhost:3000/{databasename}/items.json?token=123 |
View single item in XML format | https://localhost:3000/{databasename}/{item_id}.xml?token=123 |
View single item in JSON format | https://localhost:3000/{databasename}/{part_id}.json?token=123 |
UPDATE | |
Add or update item with XML from command line | 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 | curl -X POST -H "Content-Type: application/xml" -d @part.json https://localhost:3000/{databasename}/items?token=123 |
DELETE | |
Delete item from command line | 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: 2024/09/25 06:21 by 127.0.0.1