/v2/projects/{project_id}/shapes
------------------------------------------------------------------------------------------------------------------------------------------
.. contents::
GET /v2/projects/**{project_id}**/shapes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
List shapes of a project
Parameters
**********
- **project_id**: Project UUID
Response status codes
**********************
- **200**: List of shapes returned
Sample session
***************
.. literalinclude:: ../../../examples/controller_get_projectsprojectidshapes.txt
POST /v2/projects/**{project_id}**/shapes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Create a new shape instance
Parameters
**********
- **project_id**: Project UUID
Response status codes
**********************
- **400**: Invalid request
- **201**: Shape created
Input
*******
.. raw:: html
Name | Mandatory | Type | Description |
project_id | | string | Project UUID |
shape_id | | string | Shape UUID |
svg | | string | SVG content of the shape |
x | | integer | X property |
y | | integer | Y property |
z | | integer | Z property |
Output
*******
.. raw:: html
Name | Mandatory | Type | Description |
project_id | | string | Project UUID |
shape_id | | string | Shape UUID |
svg | | string | SVG content of the shape |
x | | integer | X property |
y | | integer | Y property |
z | | integer | Z property |
Sample session
***************
.. literalinclude:: ../../../examples/controller_post_projectsprojectidshapes.txt