~~NOTRANS~~
====== 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 ==
=== 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 ==
.../rest/drawings/plot_file/5
=== 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 ==
.../rest/drawings/plot_file/8
=== 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 |