OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add OAS3 doc for new available_assignees endpoint
Aaron Contreras22e6a2cfb27a
diff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.ymlindex 27438f18537..375f672c197 100644--- a/docs/api/apiv3/openapi-spec.yml+++ b/docs/api/apiv3/openapi-spec.yml@@ -444,6 +444,8 @@ paths:"$ref": "./paths/work_package_activities.yml""/api/v3/work_packages/{id}/attachments":"$ref": "./paths/work_package_attachments.yml"+ "/api/v3/work_packages/{id}/available_assignees":+ "$ref": "./paths/work_package_available_assignees.yml""/api/v3/work_packages/{id}/available_projects":"$ref": "./paths/work_package_available_projects.yml""/api/v3/work_packages/{id}/available_relation_candidates":diff --git a/docs/api/apiv3/paths/project_available_assignees.yml b/docs/api/apiv3/paths/project_available_assignees.ymlindex 91b06b01e72..25a1b2d407f 100644--- a/docs/api/apiv3/paths/project_available_assignees.yml+++ b/docs/api/apiv3/paths/project_available_assignees.yml@@ -111,5 +111,5 @@ get:- Work Packagesdescription: Gets a list of users that can be assigned to work packages in the givenproject.- operationId: Available_assignees- summary: Available assignees+ operationId: Project_Available_assignees+ summary: Project Available assigneesdiff --git a/docs/api/apiv3/paths/work_package_available_assignees.yml b/docs/api/apiv3/paths/work_package_available_assignees.ymlnew file mode 100644index 00000000000..38b99763d88--- /dev/null+++ b/docs/api/apiv3/paths/work_package_available_assignees.yml@@ -0,0 +1,114 @@+# /api/v3/work_packages/{id}/available_assignees+---+get:+ parameters:+ - description: Work package id+ example: '1'+ in: path+ name: id+ required: true+ schema:+ type: integer+ responses:+ '200':+ content:+ application/hal+json:+ examples:+ response:+ value:+ _embedded:+ elements:+ - _links:+ delete:+ href: "/api/v3/users/1"+ method: DELETE+ title: Delete j.sheppard+ lock:+ href: "/api/v3/users/1/lock"+ method: POST+ title: Set lock on j.sheppard+ self:+ href: "/api/v3/users/1"+ title: John Sheppard - j.sheppard+ _type: User+ avatar: https://example.org/users/1/avatar+ createdAt: '2014-05-21T08:51:20.396Z'+ email: [email protected]+ firstName: John+ id: 1+ lastName: Sheppard+ login: j.sheppard+ status: active+ updatedAt: '2014-05-21T08:51:20.396Z'+ - _links:+ delete:+ href: "/api/v3/users/2"+ method: DELETE+ title: Delete j.sheppard2+ lock:+ href: "/api/v3/users/2/lock"+ method: POST+ title: Set lock on j.sheppard2+ self:+ href: "/api/v3/users/2"+ title: Jim Sheppard - j.sheppard2+ _type: User+ avatar: https://example.org/users/1/avatar+ createdAt: '2014-05-21T08:51:20.396Z'+ email: [email protected]+ firstName: Jim+ id: 2+ lastName: Sheppard+ login: j.sheppard2+ status: active+ updatedAt: '2014-05-21T08:51:20.396Z'+ _links:+ self:+ href: "/api/v3/work_packages/42/available_assignees"+ _type: Collection+ count: 2+ total: 2+ schema:+ "$ref": "../components/schemas/available_assignees_model.yml"+ description: OK+ headers: {}+ '403':+ content:+ application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"+ examples:+ response:+ value:+ _type: Error+ errorIdentifier: urn:openproject-org:api:v3:errors:MissingPermission+ message: You are not allowed to see the assignable users for this+ work package.+ description: |-+ Returned if the client does not have sufficient permissions.++ **Required permission:** view work packages++ *Note that you will only receive this error, if you are at least allowed to see the corresponding work package.*+ headers: {}+ '404':+ content:+ application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"+ examples:+ response:+ value:+ _type: Error+ errorIdentifier: urn:openproject-org:api:v3:errors:NotFound+ message: The specified work package does not exist.+ description: |-+ Returned if the work package does not exist or the client does not have sufficient permissions to see it.++ **Required permission:** view work packages+ headers: {}+ tags:+ - Work Packages+ description: Gets a list of users that can be assigned to the given work package.+ operationId: Work_Package_Available_assignees+ summary: Work Package Available assignees