API
Administration
Dependencies
GlobalAuth
Class to authenticate access to API
Parameters:
Name | Type | Description | Default |
---|---|---|---|
HttpBearer
|
|
required |
Source code in backend/administration/api/dependencies/auth.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
authenticate(request, token)
Method to authenticate to api based on token provided
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
request
|
the request object |
required |
token
|
token
|
the API token to authenticate |
required |
Returns:
Name | Type | Description |
---|---|---|
token |
api_key
|
the api key |
Source code in backend/administration/api/dependencies/auth.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
current_date()
Gets a timezone adjusted date for todays date.
Returns:
Type | Description |
---|---|
Date
|
Timezone adjusted date |
Source code in backend/administration/api/dependencies/current_date.py
7 8 9 10 11 12 13 14 15 16 17 |
|
paginate_list(item_list, page_size, page)
Takes a recordset and returns it paginated. If page_size is 0, return all records.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
item_list
|
RecordSet
|
A record set. Required. |
required |
page_size
|
int
|
The number of items per page. Required. |
required |
page
|
int
|
The current page. Required. |
required |
Returns:
Type | Description |
---|---|
tuple
|
(paginated_list (list), total_records (int), total_pages (int)) |
Source code in backend/administration/api/dependencies/paginate_list.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
Views
list_version(request)
The function list_version
retrieves the app version number
from the backend.
Endpoint
- Path:
/api/v1/administration/version/list
- Method:
GET
- Response Model:
VersionOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns:
Type | Description |
---|---|
VersionOut
|
a version object |
Source code in backend/administration/api/views/version.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
Schemas
VersionOut
Schema to represent a Version
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the Version. Required. |
version_number |
str
|
The version number. Required. |
Source code in backend/administration/api/schemas/version.py
5 6 7 8 9 10 11 12 13 14 15 |
|
Material
Dependencies
Views
create_material(request, payload)
The function create_material
creates a Material
Endpoint
- Path:
/api/v1/material/material/create
- Method:
POST
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
|
required | |
payload
|
MaterialIn
|
An object using schema of MaterialIn. |
required |
Returns:
Name | Type | Description |
---|---|---|
id |
int
|
returns the id of the created Material |
Source code in backend/material/api/views/material.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
create_material_object(request, payload)
The function create_material_object
creates a MaterialObject
Endpoint
- Path:
/api/v1/material/material_object/create
- Method:
POST
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
|
required | |
payload
|
MaterialObjectIn
|
An object using schema of MaterialObjectIn. |
required |
Returns:
Name | Type | Description |
---|---|---|
id |
int
|
returns the id of the created MaterialObject |
Source code in backend/material/api/views/material_object.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
create_store(request, payload)
The function create_store
creates a store
Endpoint
- Path:
/api/v1/store/create
- Method:
POST
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
|
required | |
payload
|
StoreIn
|
An object using schema of StoreIn. |
required |
Returns:
Name | Type | Description |
---|---|---|
id |
int
|
returns the id of the created store |
Source code in backend/material/api/views/store.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
delete_material(request, material_id)
The function delete_material
deletes the Material specified by id.
Endpoint
- Path:
/api/v1/material/material/delete/{material_id}
- Method:
DELETE
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
material_id
|
int
|
the id of the Material to delete |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the Material with the specified ID does not exist. |
Source code in backend/material/api/views/material.py
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
|
delete_material_object(request, material_object_id)
The function delete_material_object
deletes the MaterialObject specified by id.
Endpoint
- Path:
/api/v1/material/material_object/delete/{material_object_id}
- Method:
DELETE
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
material_object_id
|
int
|
the id of the MaterialObject to delete |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the MaterialObject with the specified ID does not exist. |
Source code in backend/material/api/views/material_object.py
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
|
delete_store(request, store_id)
The function delete_store
deletes the store specified by id.
Endpoint
- Path:
/api/v1/store/delete/{store_id}
- Method:
DELETE
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
store_id
|
int
|
the id of the store to delete |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the store with the specified ID does not exist. |
Source code in backend/material/api/views/store.py
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
|
get_material(request, material_id)
The function get_material
retrieves the Material by id
Endpoint
- Path:
/api/v1/material/material/get/{material_id}
- Method:
GET
- Response Model:
MaterialOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
material_id
|
int
|
The id of the Material to retrieve. |
required |
Returns:
Type | Description |
---|---|
MaterialOut
|
The Material object |
Raises:
Type | Description |
---|---|
Http404
|
If the Material with the specified ID does not exist. |
Source code in backend/material/api/views/material.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
|
get_material_object(request, material_object_id)
The function get_material_object
retrieves the MaterialObject by id
Endpoint
- Path:
/api/v1/material/material_object/get/{material_object_id}
- Method:
GET
- Response Model:
MaterialObjectOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
material_object_id
|
int
|
The id of the MaterialObject to retrieve. |
required |
Returns:
Type | Description |
---|---|
MaterialObjectOut
|
The MaterialObject object |
Raises:
Type | Description |
---|---|
Http404
|
If the MaterialObject with the specified ID does not exist. |
Source code in backend/material/api/views/material_object.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
|
get_material_status(request, material_status_id)
The function get_material_status
retrieves the MaterialStatus by id
Endpoint
- Path:
/api/v1/material/material_status/get/{material_status_id}
- Method:
GET
- Response Model:
MaterialStatusOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
material_status_id
|
int
|
The id of the MaterialStatus to retrieve. |
required |
Returns:
Type | Description |
---|---|
MaterialStatusOut
|
The MaterialStatus object |
Raises:
Type | Description |
---|---|
Http404
|
If the MaterialStatus with the specified ID does not exist. |
Source code in backend/material/api/views/material_status.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
get_store(request, store_id)
The function get_store
retrieves the store by id
Endpoint
- Path:
/api/v1/store/get/{store_id}
- Method:
GET
- Response Model:
StoreOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
store_id
|
int
|
The id of the store to retrieve. |
required |
Returns:
Type | Description |
---|---|
StoreOut
|
The store object |
Raises:
Type | Description |
---|---|
Http404
|
If the store with the specified ID does not exist. |
Source code in backend/material/api/views/store.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
|
get_wood_species(request, wood_species_id)
The function get_wood_species
retrieves the WoodSpecies by id
Endpoint
- Path:
/api/v1/material/wood_species/get/{wood_species_id}
- Method:
GET
- Response Model:
WoodSpeciesOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
wood_species_id
|
int
|
The id of the WoodSpecies to retrieve. |
required |
Returns:
Type | Description |
---|---|
WoodSpeciesOut
|
The WoodSpecies object |
Raises:
Type | Description |
---|---|
Http404
|
If the WoodSpecies with the specified ID does not exist. |
Source code in backend/material/api/views/wood_species.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
list_materials(request)
The function list_materials
retrieves a list of materials,
ordered by material_name ascending.
Endpoint
- Path:
/api/v1/material/material/list
- Method:
GET
- Response Model:
MaterialOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns:
Type | Description |
---|---|
MaterialOut
|
a list of Material objects |
Source code in backend/material/api/views/material.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
|
list_material_objects(request)
The function list_material_objects
retrieves a list of material_objects,
ordered by material_object_name ascending.
Endpoint
- Path:
/api/v1/material/material_object/list
- Method:
GET
- Response Model:
MaterialObjectOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns:
Type | Description |
---|---|
MaterialObjectOut
|
a list of MaterialObject objects |
Source code in backend/material/api/views/material_object.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
|
list_material_statuses(request)
The function list_material_statuses
retrieves a list of material_statuses,
ordered by id ascending.
Endpoint
- Path:
/api/v1/material/material_status/list
- Method:
GET
- Response Model:
MaterialStatusOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns:
Type | Description |
---|---|
MaterialStatusOut
|
a list of MaterialStatus objects |
Source code in backend/material/api/views/material_status.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
list_stores(request)
The function list_stores
retrieves a list of storees,
ordered by store_name ascending.
Endpoint
- Path:
/api/v1/store/list
- Method:
GET
- Response Model:
StoreOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns:
Type | Description |
---|---|
StoreOut
|
a list of store objects |
Source code in backend/material/api/views/store.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
|
list_wood_species(request)
The function list_wood_species
retrieves a list of wood_species,
ordered by id ascending.
Endpoint
- Path:
/api/v1/material/wood_species/list
- Method:
GET
- Response Model:
WoodSpeciesOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns:
Type | Description |
---|---|
WoodSpeciesOut
|
a list of WoodSpecies objects |
Source code in backend/material/api/views/wood_species.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
update_material(request, material_id, payload)
The function update_material
updates the Material specified by id.
Endpoint
- Path:
/api/v1/material/material/get/{material_id}
- Method:
PUT
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
material_id
|
int
|
the id of the Material to update |
required |
payload
|
MaterialIn
|
a Material object |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the Material with the specified ID does not exist. |
Source code in backend/material/api/views/material.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
update_material_object(request, material_object_id, payload)
The function update_material_object
updates the MaterialObject specified by id.
Endpoint
- Path:
/api/v1/material/material_object/get/{material_object_id}
- Method:
PUT
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
material_object_id
|
int
|
the id of the MaterialObject to update |
required |
payload
|
MaterialObjectIn
|
a MaterialObject object |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the MaterialObject with the specified ID does not exist. |
Source code in backend/material/api/views/material_object.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
|
update_store(request, store_id, payload)
The function update_store
updates the store specified by id.
Endpoint
- Path:
/api/v1/store/get/{store_id}
- Method:
PUT
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
store_id
|
int
|
the id of the store to update |
required |
payload
|
StoreIn
|
a store object |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the store with the specified ID does not exist. |
Source code in backend/material/api/views/store.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
Schemas
MaterialIn
Schema to validate a Material
Attributes:
Name | Type | Description |
---|---|---|
material_object_id |
int
|
The ID of a MaterialObject. Required. |
quantity |
int
|
The number of MaterialObjects. Required. Defaults to 1. |
material_status_id |
Optional[int]
|
The ID of a MaterialStatus. Defaults to None. |
project_id |
Optional[int]
|
The ID of a Project. Defaults to None. |
Source code in backend/material/api/schemas/material.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
MaterialOut
Schema to represent a Material
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the Material. Required. |
material_object |
MaterialObjectOut
|
A reference to a MaterialObject. Required. |
quantity |
int
|
The number of MaterialObjects. Required. Defaults to 1. |
material_status |
Optional[MaterialStatusOut]
|
A reference to a MaterialStatus. Defaults to None. |
project |
Optional[ProjectOut]
|
A reference to a Project. Defaults to None. |
Source code in backend/material/api/schemas/material.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
MaterialObjectIn
Schema to validate a MaterialObject
Attributes:
Name | Type | Description |
---|---|---|
material_object_name |
str
|
The name of the material object. Required. |
thickness_in |
Optional[Decimal]
|
The thickness in inches. Defaults to None. |
thickness_in |
Optional[Decimal]
|
The thickness of the material object in inches. Defaults to None. |
width_in |
Optional[Decimal]
|
The width of the material object in inches. Defaults to None. |
length_in |
Optional[Decimal]
|
The length of the material object in inches. Defaults to None. |
wood_species_id |
Optional[int]
|
An instance of WoodSpecies. Defaults to None. |
store_id |
Optional[int]
|
An instance of Store. Defaults to None. |
store_aisle |
Optional[str]
|
The aisle of Store this material object is found. Defaults to None. |
store_bin |
Optional[str]
|
The bin of the aisle this material object is found. Defaults to None. |
store_price |
Optional[Decimal]
|
The price at the store of this material object. Defaults to None. |
Source code in backend/material/api/schemas/material_object.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
|
MaterialObjectOut
Schema to represent a MaterialObject
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the MaterialObject. Required. |
material_object_name |
str
|
The name of the material object. Required. |
thickness_in |
Optional[Decimal]
|
The thickness of the material object in inches. Defaults to None. |
width_in |
Optional[Decimal]
|
The width of the material object in inches. Defaults to None. |
length_in |
Optional[Decimal]
|
The length of the material object in inches. Defaults to None. |
wood_species |
Optional[WoodSpeciesOut]
|
An instance of WoodSpecies. Defaults to None. |
store |
Optioanl[StoreOut]
|
An instance of Store. Defaults to None. |
store_aisle |
Optional[str]
|
The aisle of Store this material object is found. Defaults to None. |
store_bin |
Optional[str]
|
The bin of the aisle this material object is found. Defaults to None. |
store_price |
Optional[Decimal]
|
The price at the store of this material object. Defaults to 0.00. |
Source code in backend/material/api/schemas/material_object.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
MaterialStatusOut
Schema to represent a material status
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the material status. Required. |
material_status |
str
|
The material status name. Required. |
Source code in backend/material/api/schemas/material_status.py
5 6 7 8 9 10 11 12 13 14 15 |
|
StoreIn
Schema to validate a Store
Attributes:
Name | Type | Description |
---|---|---|
store_name |
str
|
The name of the Store. Required. |
Source code in backend/material/api/schemas/store.py
19 20 21 22 23 24 25 26 27 |
|
StoreOut
Schema to represent a Store
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the Store. Required. |
store_name |
str
|
The name of the Store. Required. |
Source code in backend/material/api/schemas/store.py
5 6 7 8 9 10 11 12 13 14 15 |
|
WoodSpeciesOut
Schema to represent a WoodSpecies
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the WoodSpecies. Required. |
wood_species_name |
str
|
The name of the WoodSpecies. Required. |
Source code in backend/material/api/schemas/wood_species.py
5 6 7 8 9 10 11 12 13 14 15 |
|
Note
Dependencies
Views
create_note(request, payload)
The function create_note
creates a Note
Endpoint
- Path:
/api/v1/note/note/create
- Method:
POST
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
|
required | |
payload
|
NoteIn
|
An object using schema of NoteIn. |
required |
Returns:
Name | Type | Description |
---|---|---|
id |
int
|
returns the id of the created Note |
Source code in backend/note/api/views/note.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
delete_note(request, note_id)
The function delete_note
deletes the Note specified by id.
Endpoint
- Path:
/api/v1/note/note/delete/{note_id}
- Method:
DELETE
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
note_id
|
int
|
the id of the Note to delete |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the Note with the specified ID does not exist. |
Source code in backend/note/api/views/note.py
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
|
get_note(request, note_id)
The function get_note
retrieves the Note by id
Endpoint
- Path:
/api/v1/note/note/get/{note_id}
- Method:
GET
- Response Model:
NoteOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
note_id
|
int
|
The id of the Note to retrieve. |
required |
Returns:
Type | Description |
---|---|
NoteOut
|
The Note object |
Raises:
Type | Description |
---|---|
Http404
|
If the Note with the specified ID does not exist. |
Source code in backend/note/api/views/note.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
|
list_notes(request)
The function list_notes
retrieves a list of notes,
ordered by note_date descending.
Endpoint
- Path:
/api/v1/note/note/list
- Method:
GET
- Response Model:
NoteOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns:
Type | Description |
---|---|
NoteOut
|
a list of Note objects |
Source code in backend/note/api/views/note.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
|
update_note(request, note_id, payload)
The function update_note
updates the Note specified by id.
Endpoint
- Path:
/api/v1/note/note/get/{note_id}
- Method:
PUT
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
note_id
|
int
|
the id of the Note to update |
required |
payload
|
NoteIn
|
a Note object |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the Note with the specified ID does not exist. |
Source code in backend/note/api/views/note.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
|
Schemas
NoteIn
Schema to validate a Note
Attributes:
Name | Type | Description |
---|---|---|
note_date |
date
|
The date of this note. Required. Defaults to current date. |
note |
str
|
The text of the note. Required. 508 limit. |
project_id |
Optional[int]
|
A reference to a Project by ID. Defaults to None. |
Source code in backend/note/api/schemas/note.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
NoteOut
Schema to represent a Note
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the Note. Required. |
note |
str
|
The text of the note. Required. 508 limit. |
note_date |
date
|
The date of this note. Required. Defaults to current date. |
attachment |
Optional[HttpUrl]
|
An attachment for this note. Defaults to None. |
project |
Optional[ProjectOut]
|
A reference to a Project. Defaults to None. |
Source code in backend/note/api/schemas/note.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
Part
Dependencies
Views
create_part(request, payload)
The function create_part
creates a Part
Endpoint
- Path:
/api/v1/part/part/create
- Method:
POST
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
|
required | |
payload
|
PartIn
|
An object using schema of PartIn. |
required |
Returns:
Name | Type | Description |
---|---|---|
id |
int
|
returns the id of the created Part |
Source code in backend/part/api/views/part.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
delete_part(request, part_id)
The function delete_part
deletes the Part specified by id.
Endpoint
- Path:
/api/v1/part/part/delete/{part_id}
- Method:
DELETE
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
part_id
|
int
|
the id of the Part to delete |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the Part with the specified ID does not exist. |
Source code in backend/part/api/views/part.py
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
|
get_part(request, part_id)
The function get_part
retrieves the Part by id
Endpoint
- Path:
/api/v1/part/part/get/{part_id}
- Method:
GET
- Response Model:
PartOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
part_id
|
int
|
The id of the Part to retrieve. |
required |
Returns:
Type | Description |
---|---|
PartOut
|
The Part object |
Raises:
Type | Description |
---|---|
Http404
|
If the Part with the specified ID does not exist. |
Source code in backend/part/api/views/part.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
|
get_part_status(request, part_status_id)
The function get_part_status
retrieves the PartStatus by id
Endpoint
- Path:
/api/v1/part/part_status/get/{part_status_id}
- Method:
GET
- Response Model:
PartStatusOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
part_status_id
|
int
|
The id of the PartStatus to retrieve. |
required |
Returns:
Type | Description |
---|---|
PartStatusOut
|
The PartStatus object |
Raises:
Type | Description |
---|---|
Http404
|
If the PartStatus with the specified ID does not exist. |
Source code in backend/part/api/views/part_status.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
list_part_statuses(request)
The function list_part_statuses
retrieves a list of part_statuses,
ordered by id ascending.
Endpoint
- Path:
/api/v1/part/part_status/list
- Method:
GET
- Response Model:
PartStatusOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns:
Type | Description |
---|---|
PartStatusOut
|
a list of PartStatus objects |
Source code in backend/part/api/views/part_status.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
list_parts(request)
The function list_parts
retrieves a list of parts,
ordered by part_name ascending.
Endpoint
- Path:
/api/v1/part/part/list
- Method:
GET
- Response Model:
PartOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns:
Type | Description |
---|---|
PartOut
|
a list of Part objects |
Source code in backend/part/api/views/part.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
|
update_part(request, part_id, payload)
The function update_part
updates the Part specified by id.
Endpoint
- Path:
/api/v1/part/part/get/{part_id}
- Method:
PUT
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
part_id
|
int
|
the id of the Part to update |
required |
payload
|
PartIn
|
a Part object |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the Part with the specified ID does not exist. |
Source code in backend/part/api/views/part.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
Schemas
PartIn
Schema to validate a Part
Attributes:
Name | Type | Description |
---|---|---|
quantity |
int
|
The quantity of this part. Required. |
part_name |
str
|
The name of the part. Required. 254 limit. |
part_status_id |
int
|
A reference to a Part Status id. Required. |
rough_thickness_in |
Decimal
|
The rough thickness of the part in inches. Required. |
rough_width_in |
Decimal
|
The rough width of the part in inches. Required. |
rough_length_in |
Decimal
|
The rough length of the part in inches. Required. |
finished_thickness_in |
Decimal
|
The finished thickness of the part in inches. Required. |
finished_width_in |
Decimal
|
The finished width of the part in inches. Required. |
finished_length_in |
Decimal
|
The finished length of the part in inches. Required. |
project_id |
int
|
A referece to a Project id. Required. |
Source code in backend/part/api/schemas/part.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
PartOut
Schema to represent a Part
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the Part. Required. |
quantity |
int
|
The quantity of this part. Required. |
part_name |
str
|
The name of the part. Required. 254 limit. |
part_status |
PartStatusOut
|
A reference to a Part Status. Required. |
rough_thickness_in |
Decimal
|
The rough thickness of the part in inches. Required. |
rough_width_in |
Decimal
|
The rough width of the part in inches. Required. |
rough_length_in |
Decimal
|
The rough length of the part in inches. Required. |
finished_thickness_in |
Decimal
|
The finished thickness of the part in inches. Required. |
finished_width_in |
Decimal
|
The finished width of the part in inches. Required. |
finished_length_in |
Decimal
|
The finished length of the part in inches. Required. |
project |
ProjectOut
|
A referece to a Project. Required. |
Source code in backend/part/api/schemas/part.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
PartStatusOut
Schema to represent a PartStatus
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the PartStatus. Required. |
part_status |
str
|
The text status of a part. Required. Unique. 254 limit. |
Source code in backend/part/api/schemas/part_status.py
5 6 7 8 9 10 11 12 13 14 15 16 |
|
Project
Dependencies
Views
create_project(request, payload)
The function create_project
creates a Project
Endpoint
- Path:
/api/v1/project/project/create
- Method:
POST
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
|
required | |
payload
|
ProjectIn
|
An object using schema of ProjectIn. |
required |
Returns:
Name | Type | Description |
---|---|---|
id |
int
|
returns the id of the created Project |
Source code in backend/project/api/views/project.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
delete_project(request, project_id)
The function delete_project
deletes the Project specified by id.
Endpoint
- Path:
/api/v1/project/project/delete/{project_id}
- Method:
DELETE
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
project_id
|
int
|
the id of the Project to delete |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the Project with the specified ID does not exist. |
Source code in backend/project/api/views/project.py
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
|
get_project(request, project_id)
The function get_project
retrieves the Project by id
Endpoint
- Path:
/api/v1/project/project/get/{project_id}
- Method:
GET
- Response Model:
ProjectOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
project_id
|
int
|
The id of the Project to retrieve. |
required |
Returns:
Type | Description |
---|---|
ProjectOut
|
The Project object |
Raises:
Type | Description |
---|---|
Http404
|
If the Project with the specified ID does not exist. |
Source code in backend/project/api/views/project.py
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
|
get_project_phase(request, project_phase_id)
The function get_project_phase
retrieves the ProjectPhase by id
Endpoint
- Path:
/api/v1/project/project_phase/get/{project_phase_id}
- Method:
GET
- Response Model:
ProjectPhaseOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
project_phase_id
|
int
|
The id of the ProjectPhase to retrieve. |
required |
Returns:
Type | Description |
---|---|
ProjectPhaseOut
|
The ProjectPhase object |
Raises:
Type | Description |
---|---|
Http404
|
If the ProjectPhase with the specified ID does not exist. |
Source code in backend/project/api/views/project_phase.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
get_project_status(request, project_status_id)
The function get_project_status
retrieves the ProjectStatus by id
Endpoint
- Path:
/api/v1/project/project_status/get/{project_status_id}
- Method:
GET
- Response Model:
ProjectStatusOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
project_status_id
|
int
|
The id of the ProjectStatus to retrieve. |
required |
Returns:
Type | Description |
---|---|
ProjectStatusOut
|
The ProjectStatus object |
Raises:
Type | Description |
---|---|
Http404
|
If the ProjectStatus with the specified ID does not exist. |
Source code in backend/project/api/views/project_status.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
list_project_phases(request)
The function list_project_phases
retrieves a list of project_phases,
ordered by id ascending.
Endpoint
- Path:
/api/v1/project/project_phase/list
- Method:
GET
- Response Model:
ProjectPhaseOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns:
Type | Description |
---|---|
ProjectPhaseOut
|
a list of ProjectPhase objects |
Source code in backend/project/api/views/project_phase.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
list_project_statuses(request)
The function list_project_statuses
retrieves a list of project_statuses,
ordered by project_status_name ascending.
Endpoint
- Path:
/api/v1/project/project_status/list
- Method:
GET
- Response Model:
ProjectStatusOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns:
Type | Description |
---|---|
ProjectStatusOut
|
a list of ProjectStatus objects |
Source code in backend/project/api/views/project_status.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
list_projects(request, page=1, page_size=10, dash=False)
The function list_projects
retrieves a list of projects,
ordered by project_name ascending.
Endpoint
- Path:
/api/v1/project/project/list
- Method:
GET
- Response Model:
ProjectOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
dash
|
bool
|
Filters projects that are not in progress or on hold. Defaults to False. |
False
|
Returns:
Type | Description |
---|---|
ProjectOut
|
a list of Project objects |
Source code in backend/project/api/views/project.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
|
update_project(request, project_id, payload)
The function update_project
updates the Project specified by id.
Endpoint
- Path:
/api/v1/project/project/get/{project_id}
- Method:
PUT
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
project_id
|
int
|
the id of the Project to update |
required |
payload
|
ProjectIn
|
a Project object |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the Project with the specified ID does not exist. |
Source code in backend/project/api/views/project.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
|
Schemas
PaginatedProjects
Schema to provide a paginated list of ProjectOut.
Attributes:
Name | Type | Description |
---|---|---|
projects |
List[ProjectOut]
|
A list of ProjectOut. Required. |
current_page |
int
|
The current page returned. Required. |
total_pages |
int
|
The total number of pages. Required. |
total_records |
int
|
The total number of projects. Required. |
Source code in backend/project/api/schemas/project.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
|
ProjectIn
Schema to validate a Project
Attributes:
Name | Type | Description |
---|---|---|
project_name |
str
|
The name of the poject. Required. Unique. 254 limit. |
project_status |
ProjectStatusOut
|
A reference to a Project Status. Required. |
start_date |
Optional[date]
|
The date this project started. Defaults to None. |
due_date |
Optional[date]
|
The date this project is due. Defaults to None. |
completed_date |
Optional[date]
|
The date this project completed. Defaults to None. |
depth_in |
Optional[Decimal]
|
The depth in inches. Defaults to 0. |
width_in |
Optional[Decimal]
|
The width in inches. Defaults to 0. |
height_in |
Optional[Decimal]
|
The height in inches. Defaults to 0. |
Source code in backend/project/api/schemas/project.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
ProjectOut
Schema to represent a Project
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the Project. Required. |
project_name |
str
|
The name of the poject. Required. Unique. 254 limit. |
project_status |
ProjectStatusOut
|
A reference to a Project Status. Required. |
project_image |
Optional[str]
|
An image for the project. Defaults to None. |
start_date |
Optional[date]
|
The date this project started. Defaults to None. |
due_date |
Optional[date]
|
The date this project is due. Defaults to None. |
completed_date |
Optional[date]
|
The date this project completed. Defaults to None. |
depth_in |
Optional[Decimal]
|
The depth in inches. Defaults to 0. |
width_in |
Optional[Decimal]
|
The width in inches. Defaults to 0. |
height_in |
Optional[Decimal]
|
The height in inches. Defaults to 0. |
Source code in backend/project/api/schemas/project.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
ProjectPhaseOut
Schema to represent a ProjectPhase
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the ProjectPhase. Required. |
project_phase |
str
|
The text phase of a project. Required. Unique. |
Source code in backend/project/api/schemas/project_phase.py
5 6 7 8 9 10 11 12 13 14 15 |
|
ProjectStatusOut
Schema to represent a ProjectStatus
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the ProjectStatus. Required. |
project_status |
str
|
The text status of a project. Required. Unique. |
Source code in backend/project/api/schemas/project_status.py
5 6 7 8 9 10 11 12 13 14 15 |
|
Task
Dependencies
Views
create_task(request, payload)
The function create_task
creates a Task
Endpoint
- Path:
/api/v1/task/task/create
- Method:
POST
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
|
required | |
payload
|
TaskIn
|
An object using schema of TaskIn. |
required |
Returns:
Name | Type | Description |
---|---|---|
id |
int
|
returns the id of the created Task |
Source code in backend/task/api/views/task.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
delete_task(request, task_id)
The function delete_task
deletes the Task specified by id.
Endpoint
- Path:
/api/v1/task/task/delete/{task_id}
- Method:
DELETE
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
task_id
|
int
|
the id of the Task to delete |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the Task with the specified ID does not exist. |
Source code in backend/task/api/views/task.py
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
|
get_task(request, task_id)
The function get_task
retrieves the Task by id
Endpoint
- Path:
/api/v1/task/task/get/{task_id}
- Method:
GET
- Response Model:
TaskOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
task_id
|
int
|
The id of the Task to retrieve. |
required |
Returns:
Type | Description |
---|---|
TaskOut
|
The Task object |
Raises:
Type | Description |
---|---|
Http404
|
If the Task with the specified ID does not exist. |
Source code in backend/task/api/views/task.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
|
get_task_status(request, task_status_id)
The function get_task_status
retrieves the TaskStatus by id
Endpoint
- Path:
/api/v1/task/task_status/get/{task_status_id}
- Method:
GET
- Response Model:
TaskStatusOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
task_status_id
|
int
|
The id of the TaskStatus to retrieve. |
required |
Returns:
Type | Description |
---|---|
TaskStatusOut
|
The TaskStatus object |
Raises:
Type | Description |
---|---|
Http404
|
If the TaskStatus with the specified ID does not exist. |
Source code in backend/task/api/views/task_status.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
list_task_statuses(request)
The function list_task_statuses
retrieves a list of task_statuses,
ordered by id ascending.
Endpoint
- Path:
/api/v1/task/task_status/list
- Method:
GET
- Response Model:
TaskStatusOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns:
Type | Description |
---|---|
TaskStatusOut
|
a list of TaskStatus objects |
Source code in backend/task/api/views/task_status.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
list_tasks(request)
The function list_tasks
retrieves a list of tasks,
ordered by task_name ascending.
Endpoint
- Path:
/api/v1/task/task/list
- Method:
GET
- Response Model:
TaskOut
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
Returns: (TaskOut): a list of Task objects
Source code in backend/task/api/views/task.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
|
update_task(request, task_id, payload)
The function update_task
updates the Task specified by id.
Endpoint
- Path:
/api/v1/task/task/get/{task_id}
- Method:
PUT
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
HttpRequest
|
The HTTP request object. |
required |
task_id
|
int
|
the id of the Task to update |
required |
payload
|
TaskIn
|
a Task object |
required |
Returns:
Name | Type | Description |
---|---|---|
success |
bool
|
True |
Raises:
Type | Description |
---|---|
Http404
|
If the Task with the specified ID does not exist. |
Source code in backend/task/api/views/task.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
Schemas
TaskStatusOut
Schema to represent a TaskStatus
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the TaskStatus. Required. |
task_status |
str
|
The status text of a task. Required. Unique. 254 limit. |
Source code in backend/task/api/schemas/task_status.py
5 6 7 8 9 10 11 12 13 14 15 |
|
TaskIn
Schema to validate a Task
Attributes:
Name | Type | Description |
---|---|---|
task_name |
str
|
The name of the task. Required. Unique. 254 limit. |
task_status_id |
int
|
A reference to a Task Status by id. Required. |
start_date |
Optional[date]
|
The date this task started. Defaults to None. |
due_date |
Optional[date]
|
The date this task is due. Defaults to None. |
completed_date |
Optional[date]
|
The date this task completed. Defaults to None. |
project_id |
Optional[int]
|
A referece to a Project by id. Defaults to None. |
phase_id |
Optional[int]
|
A reference to a Project Phase by id. Defaults to None. |
step |
Optional[int]
|
The number representing the order of the step. Defaults to None. |
part |
Optional[int]
|
A reference to a Part by id. Defaults to None. |
Source code in backend/task/api/schemas/task.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
TaskOut
Schema to represent a Task
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The id of the Task. Required. |
task_name |
str
|
The name of the task. Required. Unique. 254 limit. |
task_status |
TaskStatusOut
|
A reference to a Task Status. Required. |
start_date |
Optional[date]
|
The date this task started. Defaults to None. |
due_date |
Optional[date]
|
The date this task is due. Defaults to None. |
completed_date |
Optional[date]
|
The date this task completed. Defaults to None. |
project |
Optional[ProjectOut]
|
A referece to a Project. Defaults to None. |
phase |
Optional[ProjectPhaseOut]
|
A reference to a Project Phase. Defaults to None. |
step |
Optional[int]
|
The number representing the order of the step. Defaults to None. |
part |
Optional[PartOut]
|
A reference to a Part. Defaults to None. |
Source code in backend/task/api/schemas/task.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|