Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add an example of getting artifact events.

...

{"Number":1,"IsComplete":true,"IsReadOnly":false,"Artifacts":[{"Name":"pages","IsComplete":true,"FileMimeType":"application/pdf","Deferred":{"IsAvailable":false}}],"CreatedDateTimeUtc":"\/Date(1375760186660)\/","LastSavedDateTimeUtc":"\/Date(1375760186660)\/"}

Getting Events for an Artifact

Request:

GET http://api.staging.milkbooks.com/project/e3286b26c0dc4b3ab22abdedc9d6ff59/version/1/artifact/pages/events HTTP/1.1
Content-Type: application/json
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhcGkuZGV2Lm1pbGtib29rc3dlYnNpdGUuZWlkLmNvLm56IiwiYXVkIjoiYXBpLmRldi5taWxrYm9va3N3ZWJzaXRlLmVpZC5jby5ueiIsImV4cCI6MTM3ODgyMDI0Niwic3ViIjoiMSJ9.CNrzzyjkLo5mC9rYyEkInishBLhRVP36khY9prV527c
Host: api.staging.milkbooks.com
Content-Length: 0

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/8.0
X-Powered-By: ServiceStack/3.956 Win32NT/.NET
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 10 Sep 2013 03:40:41 GMT
Content-Length: 125
{"Events":[{"Id":1,"EventType":"PreflightError","Message":"URL not available","EventDateTimeUtc":"\/Date(1378741227070)\/"}]}