Content
View differences
Updated by Oliver Günther about 10 years ago
**Acceptance criteria**
- Have a project independent route in the API v3 for creating work packages via `POST /api/v3/work_packages`
- The behaviour is similiar to the project specific route `/api/v3/projects/:project_id/work_packages`
- The `project` attribute/link on the resource:
- is set to the first of the current users project if no project is provided
- can be set like other fields (e.g. status, type) via e.g.
<!-- end list -->
{
"_links:"
{
"project":
{
"href": "/api/v3/projects/openproject"
}
}
}
- The `form` describing the desired payload is to be available via `POST /api/v3/work_packages/form`
- The `project` attribute needs to become `writable` in the schema
- The schema’s href linked in the `form` is unchanged `/api/v3/projects/:project_id/work_packages/schema/:project_id-:type_id`
**Out of scope** **Open**
- Remove project specific routes. Technically, they won’t be needed once Do we fully switch need to keep the global create. project specific routes?
- We I guess we should keep them it for now as removing it would violate API versioning.
- Have a project independent route in the API v3 for creating work packages via `POST /api/v3/work_packages`
- The behaviour is similiar to the project specific route `/api/v3/projects/:project_id/work_packages`
- The `project` attribute/link on the resource:
- is set to the first of the current users project if no project is provided
- can be set like other fields (e.g. status, type) via e.g.
<!-- end list -->
{
"_links:"
{
"project":
{
"href": "/api/v3/projects/openproject"
}
}
}
- The `form` describing the desired payload is to be available via `POST /api/v3/work_packages/form`
- The `project` attribute needs to become `writable` in the schema
- The schema’s href linked in the `form` is unchanged `/api/v3/projects/:project_id/work_packages/schema/:project_id-:type_id`
**Out of scope**
- Remove project specific routes. Technically, they won’t be needed once
- We