2016-06-23 09:17:23 +00:00
|
|
|
/v2/projects/{project_id}/drawings/{drawing_id}
|
2016-06-21 08:35:43 +00:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
2016-06-23 09:17:23 +00:00
|
|
|
PUT /v2/projects/**{project_id}**/drawings/**{drawing_id}**
|
2016-06-21 08:35:43 +00:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-06-23 09:17:23 +00:00
|
|
|
Create a new drawing instance
|
2016-06-21 08:35:43 +00:00
|
|
|
|
|
|
|
Parameters
|
|
|
|
**********
|
2016-07-26 17:57:53 +00:00
|
|
|
- **project_id**: Project UUID
|
2016-08-15 15:39:08 +00:00
|
|
|
- **drawing_id**: Drawing UUID
|
2016-06-21 08:35:43 +00:00
|
|
|
|
|
|
|
Response status codes
|
|
|
|
**********************
|
|
|
|
- **400**: Invalid request
|
2016-06-23 09:17:23 +00:00
|
|
|
- **201**: Drawing updated
|
2016-06-21 08:35:43 +00:00
|
|
|
|
|
|
|
Input
|
|
|
|
*******
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
2016-06-23 10:29:15 +00:00
|
|
|
<tr><td>drawing_id</td> <td> </td> <td>string</td> <td>Drawing UUID</td> </tr>
|
2016-06-21 08:35:43 +00:00
|
|
|
<tr><td>project_id</td> <td> </td> <td>string</td> <td>Project UUID</td> </tr>
|
2016-06-22 16:14:14 +00:00
|
|
|
<tr><td>rotation</td> <td> </td> <td>integer</td> <td>Rotation of the element</td> </tr>
|
2016-06-23 09:17:23 +00:00
|
|
|
<tr><td>svg</td> <td> </td> <td>string</td> <td>SVG content of the drawing</td> </tr>
|
2016-06-21 08:35:43 +00:00
|
|
|
<tr><td>x</td> <td> </td> <td>integer</td> <td>X property</td> </tr>
|
|
|
|
<tr><td>y</td> <td> </td> <td>integer</td> <td>Y property</td> </tr>
|
|
|
|
<tr><td>z</td> <td> </td> <td>integer</td> <td>Z property</td> </tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
Output
|
|
|
|
*******
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
2016-06-23 10:29:15 +00:00
|
|
|
<tr><td>drawing_id</td> <td> </td> <td>string</td> <td>Drawing UUID</td> </tr>
|
2016-06-21 08:35:43 +00:00
|
|
|
<tr><td>project_id</td> <td> </td> <td>string</td> <td>Project UUID</td> </tr>
|
2016-06-22 16:14:14 +00:00
|
|
|
<tr><td>rotation</td> <td> </td> <td>integer</td> <td>Rotation of the element</td> </tr>
|
2016-06-23 09:17:23 +00:00
|
|
|
<tr><td>svg</td> <td> </td> <td>string</td> <td>SVG content of the drawing</td> </tr>
|
2016-06-21 08:35:43 +00:00
|
|
|
<tr><td>x</td> <td> </td> <td>integer</td> <td>X property</td> </tr>
|
|
|
|
<tr><td>y</td> <td> </td> <td>integer</td> <td>Y property</td> </tr>
|
|
|
|
<tr><td>z</td> <td> </td> <td>integer</td> <td>Z property</td> </tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
Sample session
|
|
|
|
***************
|
|
|
|
|
|
|
|
|
2016-06-23 09:17:23 +00:00
|
|
|
.. literalinclude:: ../../../examples/controller_put_projectsprojectiddrawingsdrawingid.txt
|
2016-06-21 08:35:43 +00:00
|
|
|
|
|
|
|
|
2016-06-23 09:17:23 +00:00
|
|
|
DELETE /v2/projects/**{project_id}**/drawings/**{drawing_id}**
|
2016-06-21 08:35:43 +00:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-06-23 09:17:23 +00:00
|
|
|
Delete a drawing instance
|
2016-06-21 08:35:43 +00:00
|
|
|
|
|
|
|
Parameters
|
|
|
|
**********
|
2016-07-26 17:57:53 +00:00
|
|
|
- **project_id**: Project UUID
|
2016-08-15 15:39:08 +00:00
|
|
|
- **drawing_id**: Drawing UUID
|
2016-06-21 08:35:43 +00:00
|
|
|
|
|
|
|
Response status codes
|
|
|
|
**********************
|
|
|
|
- **400**: Invalid request
|
2016-06-23 09:17:23 +00:00
|
|
|
- **204**: Drawing deleted
|
2016-06-21 08:35:43 +00:00
|
|
|
|
|
|
|
Sample session
|
|
|
|
***************
|
|
|
|
|
|
|
|
|
2016-06-23 09:17:23 +00:00
|
|
|
.. literalinclude:: ../../../examples/controller_delete_projectsprojectiddrawingsdrawingid.txt
|
2016-06-21 08:35:43 +00:00
|
|
|
|