Drawings
POST
Search for drawings
/rest/drawings/search
- Search for plan number and project
Example request body
plan_no=1&project_id=17
Example result
<?xml version="1.0" encoding="UTF-8"?> <xml> <item0 id="123" plan_no="1" plan_content="test" plan_index="" area="0" is_done="0" is_valid="1" sub_plan="" scale="" cad_file="...pdf" plot_file="" purpose="test" clipboard="" approved="0" approved_external="0" project="Testprojekt" project_id="17" .../> </xml>
Possible values
| Field | Description | Valid values | German Name |
|---|---|---|---|
| project_id | Project ID | integer | Projekt ID |
| plan_no | Plan number | Plan Nummer | |
| plan_content | Plan content | Inhalt | |
| plan_index | Index | Index | |
| sub_plan | Sub plan | Subplan | |
| purpose | Purpose | Bemerkung |
POST/PUT
Update plot file
/rest/drawings/plot_file/5
- Update plot file values of drawing ID 5
Example request body
plot_file=foo1.txt&date=2008-12-26&is_done=true&approved=true
Example result
<?xml version="1.0" encoding="UTF-8"?> <xml> <url>.../rest/drawings/plot_file/5</url> </xml>
Possible values
| Field | Description | Valid values | German Name |
|---|---|---|---|
| plot_file | Plot file | PLOT Datei | |
| area | Area | float | Fläche |
| date | Date | date | Datum |
| approved | Approved | bool | Freigabe |
| is_done | Not valid | bool | Nicht Gültig |
| staff_id | Optional Staff ID to save for | integer | Mitarbeiter |
POST/PUT
Create new drawing
/rest/drawings/drawing/
- Create new drawing
Example request body
plot_file=foo2.txt&date=2008-12-26&is_done=false&project_id=3&plan_no=2&plan_content=Plan&type_id=1
Example result
<?xml version="1.0" encoding="UTF-8"?> <xml> <url>.../rest/drawings/plot_file/8</url> </xml>
Possible values
| Field | Description | Valid values | German Name |
|---|---|---|---|
| project_id | Project ID | required,integer | Projekt |
| plan_no | Plan number | required | Plan Nummer |
| plan_content | Plan content | required | Inhalt |
| plan_index | Index | Index | |
| type_id | Type ID | integer | Art |
| area | Area | float | Fläche |
| date | Date | date | Datum |
| is_done | Not valid | bool | Nicht Gültig |
| sub_plan | Sub plan | Subplan | |
| cad_file | CAD file | CAD-Datei | |
| plot_file | PLOT file | PLOT-Datei | |
| approved | Approved | bool | Freigabe |
| approved_external | Approved external | bool | Freigabe extern |
| approval_deadline | Approved deadline | date | Freigabe Datum |
| purpose | Purpose | Bemerkung | |
| clipboard | Clipboard | Ablage | |
| size_id | Size ID | integer | Größe |
| scale | Scale | Maßstab | |
| redline_remarks | Modified | Änderungsvermerke | |
| staff_id | Optional Staff ID to save for | integer | Mitarbeiter |