Skip to content

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

merged view_user_model into user_model

Markus Kahlc958d57beb5a
diff --git a/docs/api/apiv3/components/schemas/user_model.yml b/docs/api/apiv3/components/schemas/user_model.yml
index f6e3793a80c..fa1df51640f 100644
--- a/docs/api/apiv3/components/schemas/user_model.yml
+++ b/docs/api/apiv3/components/schemas/user_model.yml
@@ -1,6 +1,35 @@
# Schema: UserModel
---
type: object
+example:
+ _type: User
+ _links:
+ self:
+ href: "/api/v3/users/1"
+ title: j.sheppard
+ show:
+ href: "/users/1"
+ type: text/html
+ lock:
+ href: "/api/v3/users/1/lock"
+ method: POST
+ updateImmediately:
+ href: "/api/v3/users/1"
+ method: PATCH
+ delete:
+ href: "/api/v3/users/1"
+ method: DELETE
+ id: 1
+ login: j.sheppard
+ firstName: John
+ lastName: Sheppard
+ 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'
properties:
id:
type: integer
diff --git a/docs/api/apiv3/components/schemas/view_user_model.yml b/docs/api/apiv3/components/schemas/view_user_model.yml
deleted file mode 100644
index 37f9ce6f861..00000000000
--- a/docs/api/apiv3/components/schemas/view_user_model.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-# Schema: View_userModel
----
-type: object
-example:
- _type: User
- _links:
- self:
- href: "/api/v3/users/1"
- title: j.sheppard
- show:
- href: "/users/1"
- type: text/html
- lock:
- href: "/api/v3/users/1/lock"
- method: POST
- updateImmediately:
- href: "/api/v3/users/1"
- method: PATCH
- delete:
- href: "/api/v3/users/1"
- method: DELETE
- id: 1
- login: j.sheppard
- firstName: John
- lastName: Sheppard
- 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'
diff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.yml
index 60a58d5b2f0..a9b59ef3627 100644
--- a/docs/api/apiv3/openapi-spec.yml
+++ b/docs/api/apiv3/openapi-spec.yml
@@ -687,8 +687,6 @@ components:
"$ref": "./components/schemas/view_time_entry_model.yml"
View_time_entry_schemaModel:
"$ref": "./components/schemas/view_time_entry_schema_model.yml"
- View_userModel:
- "$ref": "./components/schemas/view_user_model.yml"
View_user_schemaModel:
"$ref": "./components/schemas/view_user_schema_model.yml"
WatchersModel:
diff --git a/docs/api/apiv3/paths/user.yml b/docs/api/apiv3/paths/user.yml
index d801b90dca8..a5440783c2c 100644
--- a/docs/api/apiv3/paths/user.yml
+++ b/docs/api/apiv3/paths/user.yml
@@ -92,7 +92,7 @@ get:
status: active
updatedAt: '2014-05-21T08:51:20Z'
schema:
- "$ref": "../components/schemas/view_user_model.yml"
+ "$ref": "../components/schemas/user_model.yml"
description: OK
headers: {}
'404':
@@ -129,7 +129,7 @@ patch:
content:
application/hal+json:
schema:
- "$ref": "../components/schemas/view_user_model.yml"
+ "$ref": "../components/schemas/user_model.yml"
description: OK
headers: {}
'400':
diff --git a/docs/api/apiv3/paths/user_lock.yml b/docs/api/apiv3/paths/user_lock.yml
index 31807c6bab4..9098e1a7fe1 100644
--- a/docs/api/apiv3/paths/user_lock.yml
+++ b/docs/api/apiv3/paths/user_lock.yml
@@ -45,7 +45,7 @@ delete:
status: active
updatedAt: '2014-05-21T08:51:20Z'
schema:
- "$ref": "../components/schemas/view_user_model.yml"
+ "$ref": "../components/schemas/user_model.yml"
description: OK
headers: {}
'400':
@@ -137,7 +137,7 @@ post:
status: active
updatedAt: '2014-05-21T08:51:20Z'
schema:
- "$ref": "../components/schemas/view_user_model.yml"
+ "$ref": "../components/schemas/user_model.yml"
description: OK
headers: {}
'400':
diff --git a/docs/api/apiv3/paths/users.yml b/docs/api/apiv3/paths/users.yml
index a10cbeda0e1..5fafdb178b7 100644
--- a/docs/api/apiv3/paths/users.yml
+++ b/docs/api/apiv3/paths/users.yml
@@ -132,7 +132,7 @@ post:
content:
application/hal+json:
schema:
- "$ref": "../components/schemas/view_user_model.yml"
+ "$ref": "../components/schemas/user_model.yml"
description: Created
headers: {}
'400':