@ -1 +1 @@ |
||||
3.0.4 |
||||
3.1.2 |
||||
|
@ -1,35 +0,0 @@ |
||||
#-- copyright |
||||
# OpenProject is an open source project management software. |
||||
# Copyright (C) 2012-2022 the OpenProject GmbH |
||||
# |
||||
# This program is free software; you can redistribute it and/or |
||||
# modify it under the terms of the GNU General Public License version 3. |
||||
# |
||||
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: |
||||
# Copyright (C) 2006-2013 Jean-Philippe Lang |
||||
# Copyright (C) 2010-2013 the ChiliProject Team |
||||
# |
||||
# This program is free software; you can redistribute it and/or |
||||
# modify it under the terms of the GNU General Public License |
||||
# as published by the Free Software Foundation; either version 2 |
||||
# of the License, or (at your option) any later version. |
||||
# |
||||
# This program is distributed in the hope that it will be useful, |
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
# GNU General Public License for more details. |
||||
# |
||||
# You should have received a copy of the GNU General Public License |
||||
# along with this program; if not, write to the Free Software |
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
||||
# |
||||
# See COPYRIGHT and LICENSE files for more details. |
||||
#++ |
||||
|
||||
class Queries::Queries::Filters::HiddenFilter < Queries::Queries::Filters::QueryFilter |
||||
include Queries::Filters::Shared::BooleanFilter |
||||
|
||||
def self.key |
||||
:hidden |
||||
end |
||||
end |
@ -0,0 +1,46 @@ |
||||
# Schema: UserCollectionModel |
||||
--- |
||||
allOf: |
||||
- $ref: './collection_model.yml' |
||||
- type: object |
||||
required: |
||||
- _links |
||||
- _embedded |
||||
properties: |
||||
_links: |
||||
type: object |
||||
required: |
||||
- self |
||||
properties: |
||||
self: |
||||
allOf: |
||||
- $ref: "./link.yml" |
||||
- description: |- |
||||
This user collection |
||||
|
||||
**Resource**: UserCollectionModel |
||||
_embedded: |
||||
type: object |
||||
required: |
||||
- elements |
||||
properties: |
||||
elements: |
||||
type: array |
||||
items: |
||||
$ref: './user_model.yml' |
||||
|
||||
example: |
||||
_type: Collection |
||||
total: 2 |
||||
count: 2 |
||||
_links: |
||||
self: |
||||
href: '/api/v3/users' |
||||
_embedded: |
||||
elements: |
||||
- _hint: User resource shortened for brevity |
||||
_type: User |
||||
id: 1337 |
||||
- _hint: User resource shortened for brevity |
||||
_type: User |
||||
id: 1338 |
@ -0,0 +1,53 @@ |
||||
# Schema: UserCreateModel |
||||
--- |
||||
type: object |
||||
required: |
||||
- admin |
||||
- email |
||||
- login |
||||
- firstName |
||||
- lastName |
||||
- language |
||||
properties: |
||||
admin: |
||||
type: boolean |
||||
email: |
||||
type: string |
||||
maxLength: 60 |
||||
login: |
||||
type: string |
||||
maxLength: 256 |
||||
password: |
||||
type: string |
||||
description: |- |
||||
The users password. |
||||
|
||||
*Conditions:* |
||||
|
||||
Only writable on creation, not on update. |
||||
firstName: |
||||
type: string |
||||
maxLength: 30 |
||||
lastName: |
||||
type: string |
||||
maxLength: 30 |
||||
status: |
||||
type: string |
||||
description: |- |
||||
The current activation status of the user. |
||||
|
||||
*Conditions:* |
||||
|
||||
Only writable on creation, not on update. |
||||
language: |
||||
type: string |
||||
|
||||
example: |
||||
login: j.sheppard |
||||
password: idestroyedsouvereign |
||||
firstName: John |
||||
lastName: Sheppard |
||||
email: shep@mail.com |
||||
admin: true |
||||
status: active |
||||
language: en |
@ -1,43 +0,0 @@ |
||||
# Schema: UsersModel |
||||
--- |
||||
type: object |
||||
example: |
||||
_links: |
||||
self: |
||||
href: "/api/v3/users" |
||||
total: 2 |
||||
count: 1 |
||||
_type: Collection |
||||
_embedded: |
||||
elements: |
||||
- _type: User |
||||
_links: |
||||
self: |
||||
href: "/api/v3/users/1" |
||||
title: John Sheppard - j.sheppard |
||||
showUser: |
||||
href: "/users/1" |
||||
type: text/html |
||||
lock: |
||||
href: "/api/v3/users/1/lock" |
||||
title: Set lock on j.sheppard |
||||
method: POST |
||||
update: |
||||
href: "/api/v3/users/1" |
||||
title: Update j.sheppard |
||||
method: PATCH |
||||
delete: |
||||
href: "/api/v3/users/1" |
||||
title: Delete j.sheppard |
||||
method: DELETE |
||||
id: 1 |
||||
login: j.sheppard |
||||
firstName: John |
||||
lastName: Sheppard |
||||
email: shep@mail.com |
||||
admin: true |
||||
avatar: https://example.org/users/1/avatar |
||||
status: active |
||||
language: en |
||||
createdAt: '2014-05-21T08:51:20Z' |
||||
updatedAt: '2014-05-21T08:51:20Z' |
@ -0,0 +1,54 @@ |
||||
# /api/v3/work_packages/{id}/update_file_links |
||||
--- |
||||
post: |
||||
summary: Updated the origin data of the file links of a work package. |
||||
operationId: update_work_package_file_links |
||||
tags: |
||||
- Work Packages |
||||
- File links |
||||
description: |- |
||||
Updates the origin file data of a all file links within a work package. |
||||
|
||||
The cached data is updated (overwritten) with the new data. If any data point is not available in the new data, but |
||||
in the old cache, it is not overwritten. |
||||
|
||||
After a successful update the client SHOULD retrieve the links of file links again to obtain the new data. |
||||
parameters: |
||||
- name: id |
||||
description: Work package id |
||||
in: path |
||||
required: true |
||||
schema: |
||||
type: integer |
||||
example: 1337 |
||||
responses: |
||||
'204': |
||||
description: No content |
||||
'403': |
||||
content: |
||||
application/hal+json: |
||||
schema: |
||||
$ref: "../components/schemas/error_response.yml" |
||||
example: |
||||
_type: Error |
||||
errorIdentifier: urn:openproject-org:api:v3:errors:MissingPermission |
||||
message: You are not authorized to access this resource. |
||||
description: |- |
||||
Returned if the client does not have sufficient permissions. |
||||
|
||||
**Required permission:** view file links |
||||
|
||||
*Note that you will only receive this error, if you are at least allowed to see the corresponding work package.* |
||||
'404': |
||||
content: |
||||
application/hal+json: |
||||
schema: |
||||
$ref: "../components/schemas/error_response.yml" |
||||
example: |
||||
_type: Error |
||||
errorIdentifier: urn:openproject-org:api:v3:errors:NotFound |
||||
message: The requested resource could not be found. |
||||
description: |- |
||||
Returned if the work package does not exist or the client does not have sufficient permissions to see it. |
||||
|
||||
**Required permission:** view work package, view file links |
Before Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 77 KiB |
After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 43 KiB |