Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

History endpoint to get every history on every image #5

Merged
merged 1 commit into from
Jan 17, 2017
Merged

History endpoint to get every history on every image #5

merged 1 commit into from
Jan 17, 2017

Conversation

jaguasch
Copy link
Contributor

@jaguasch jaguasch commented Jan 17, 2017

Added a new history endpoint to get information from every history on every image

GET /v1/history

Will return something like

[
  {
    "anomalies": 0,
    "image_name": "registry",
    "libs_vulns": 0,
    "os_vulns": 3,
    "reportid": "587e5346c0d56f0007f22614",
    "start_date": "2017-01-17 17:25:17.501547",
    "status": "Completed"
  },
  {
    "anomalies": 0,
    "image_name": "mongo",
    "libs_vulns": 0,
    "os_vulns": 9,
    "reportid": "587e523ac0d56f0007f22613",
    "start_date": "2017-01-17 17:21:22.946576",
    "status": "Completed"
  }
]

anomalies, libs_vulns and os_vulns are the number of results found after the anallysis of the image. reportid is the identifier of the analysis

@coveralls
Copy link

coveralls commented Jan 17, 2017

Coverage Status

Coverage decreased (-1.2%) to 60.463% when pulling fc192a6 on jaguasch:history_all into 944d57d on eliasgranderubio:master.

@eliasgranderubio
Copy link
Owner

LGTM

@eliasgranderubio eliasgranderubio merged commit fc192a6 into eliasgranderubio:master Jan 17, 2017
eliasgranderubio added a commit that referenced this pull request Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants