|
|
|
@ -66,49 +66,52 @@ Example response: |
|
|
|
|
{ |
|
|
|
|
"categories": [ |
|
|
|
|
{ |
|
|
|
|
"url": "http://127.0.0.1:8000/category/wood-shop/", |
|
|
|
|
"url": "http://tools-auth.protospace.ca/category/wood-shop/", |
|
|
|
|
"tools": [ |
|
|
|
|
{ |
|
|
|
|
"url": "http://127.0.0.1:8000/tool/table-saw/", |
|
|
|
|
"category": "http://127.0.0.1:8000/category/wood-shop/", |
|
|
|
|
"url": "http://tools-auth.protospace.ca/tool/table-saw/", |
|
|
|
|
"category": "http://tools-auth.protospace.ca/category/wood-shop/", |
|
|
|
|
"name": "Table Saw", |
|
|
|
|
"slug": "table-saw", |
|
|
|
|
"info": "scary tool", |
|
|
|
|
"wiki_id": 123, |
|
|
|
|
"photo": "http://127.0.0.1:8000/media/floodgf.jpg" |
|
|
|
|
"photo": "http://tools-auth.protospace.ca/media/DSC00125.jpg", |
|
|
|
|
"mac": "2C3AE843A15F" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"url": "http://127.0.0.1:8000/tool/jointer/", |
|
|
|
|
"category": "http://127.0.0.1:8000/category/wood-shop/", |
|
|
|
|
"url": "http://tools-auth.protospace.ca/tool/jointer/", |
|
|
|
|
"category": "http://tools-auth.protospace.ca/category/wood-shop/", |
|
|
|
|
"name": "Jointer", |
|
|
|
|
"slug": "jointer", |
|
|
|
|
"info": "goes buzz buzz", |
|
|
|
|
"wiki_id": 1, |
|
|
|
|
"photo": "http://127.0.0.1:8000/media/uq4ldzsp4bu01.jpg" |
|
|
|
|
"photo": "http://tools-auth.protospace.ca/media/uq4ldzsp4bu01.jpg", |
|
|
|
|
"mac": "2C3AE8439EAD" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"name": "Wood Shop", |
|
|
|
|
"slug": "wood-shop", |
|
|
|
|
"info": "protospace wood shop", |
|
|
|
|
"photo": "http://127.0.0.1:8000/media/photo_2018-05-06_13-26-59.jpg" |
|
|
|
|
"photo": "http://tools-auth.protospace.ca/media/ps-wood-shop.jpg" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"url": "http://127.0.0.1:8000/category/metal-shop/", |
|
|
|
|
"url": "http://tools-auth.protospace.ca/category/metal-shop/", |
|
|
|
|
"tools": [ |
|
|
|
|
{ |
|
|
|
|
"url": "http://127.0.0.1:8000/tool/metal-lathe/", |
|
|
|
|
"category": "http://127.0.0.1:8000/category/metal-shop/", |
|
|
|
|
"url": "http://tools-auth.protospace.ca/tool/metal-lathe/", |
|
|
|
|
"category": "http://tools-auth.protospace.ca/category/metal-shop/", |
|
|
|
|
"name": "Metal Lathe", |
|
|
|
|
"slug": "metal-lathe", |
|
|
|
|
"info": "spins fast", |
|
|
|
|
"wiki_id": 42, |
|
|
|
|
"photo": "http://127.0.0.1:8000/media/intro-metal-shop-vali-steele-97.jpeg" |
|
|
|
|
"photo": "http://tools-auth.protospace.ca/media/lathe.jpeg", |
|
|
|
|
"mac": "ABCDEF000003" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"name": "Metal Shop", |
|
|
|
|
"slug": "metal-shop", |
|
|
|
|
"info": "protospace metal shop", |
|
|
|
|
"photo": "http://127.0.0.1:8000/media/photo_2018-05-08_17-57-02.jpg" |
|
|
|
|
"photo": "http://tools-auth.protospace.ca/media/metal-shop02.jpg" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
@ -127,7 +130,7 @@ Example response: |
|
|
|
|
{ |
|
|
|
|
"username": "admin", |
|
|
|
|
"profile": { |
|
|
|
|
"url": "http://127.0.0.1:8000/profile/1/", |
|
|
|
|
"url": "http://tools-auth.protospace.ca/profile/1/", |
|
|
|
|
"user": "admin", |
|
|
|
|
"authorized_tools": [ |
|
|
|
|
"table-saw", |
|
|
|
|