Commit 6987bcc5 authored by Giorgenes Gelatti's avatar Giorgenes Gelatti

Adds created at to package

parent 2a928a77
...@@ -76,7 +76,8 @@ Example response: ...@@ -76,7 +76,8 @@ Example response:
"_links": { "_links": {
"web_path": "/namespace1/project1/-/packages/1", "web_path": "/namespace1/project1/-/packages/1",
"delete_api_path": "/namespace1/project1/-/packages/1" "delete_api_path": "/namespace1/project1/-/packages/1"
} },
"created_at": "2019-11-27T03:37:38.711Z"
}, },
{ {
"id": 2, "id": 2,
...@@ -86,7 +87,8 @@ Example response: ...@@ -86,7 +87,8 @@ Example response:
"_links": { "_links": {
"web_path": "/namespace1/project1/-/packages/1", "web_path": "/namespace1/project1/-/packages/1",
"delete_api_path": "/namespace1/project1/-/packages/1" "delete_api_path": "/namespace1/project1/-/packages/1"
} },
"created_at": "2019-11-27T03:37:38.711Z"
} }
] ]
``` ```
...@@ -128,7 +130,8 @@ Example response: ...@@ -128,7 +130,8 @@ Example response:
"_links": { "_links": {
"web_path": "/namespace1/project1/-/packages/1", "web_path": "/namespace1/project1/-/packages/1",
"delete_api_path": "/namespace1/project1/-/packages/1" "delete_api_path": "/namespace1/project1/-/packages/1"
} },
"created_at": "2019-11-27T03:37:38.711Z"
} }
``` ```
......
...@@ -870,6 +870,8 @@ module EE ...@@ -870,6 +870,8 @@ module EE
expose_url api_v4_projects_packages_path(package_id: package.id, id: package.project_id) expose_url api_v4_projects_packages_path(package_id: package.id, id: package.project_id)
end end
end end
expose :created_at
end end
class PackageFile < Grape::Entity class PackageFile < Grape::Entity
......
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
"type": "string" "type": "string"
} }
} }
},
"created_at": {
"type": "string"
} }
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment