/v2/projects/{project_id}/drawings
------------------------------------------------------------------------------------------------------------------------------------------
.. contents::
GET /v2/projects/**{project_id}**/drawings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
List drawings of a project
Parameters
**********
- **project_id**: Project UUID
Response status codes
**********************
- **200**: List of drawings returned
Sample session
***************
.. literalinclude:: ../../../examples/controller_get_projectsprojectiddrawings.txt
POST /v2/projects/**{project_id}**/drawings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Create a new drawing instance
Parameters
**********
- **project_id**: Project UUID
Response status codes
**********************
- **201**: Drawing created
- **400**: Invalid request
Input
*******
.. raw:: html
Name | Mandatory | Type | Description |
drawing_id | | string | Drawing UUID |
locked | | boolean | Whether the element locked or not |
project_id | | string | Project UUID |
rotation | | integer | Rotation of the element |
svg | | string | SVG content of the drawing |
x | | integer | X property |
y | | integer | Y property |
z | | integer | Z property |
Output
*******
.. raw:: html
Name | Mandatory | Type | Description |
drawing_id | | string | Drawing UUID |
locked | | boolean | Whether the element locked or not |
project_id | | string | Project UUID |
rotation | | integer | Rotation of the element |
svg | | string | SVG content of the drawing |
x | | integer | X property |
y | | integer | Y property |
z | | integer | Z property |
Sample session
***************
.. literalinclude:: ../../../examples/controller_post_projectsprojectiddrawings.txt