Wats Standard Xml Format (WSXF)

Follow

Comments

2 comments

  • Brian Jacobsen

    How can actually get the report to provide me data from serial number? I get ""The request is invalid. when I type a serial number into ID field below

    http://wats.XXX.XXX/swagger/ui/index#!/Report/Report_Query

    Form:

    Parameters

    Parameter Value Description Parameter Type Data Type
    Id   query string
    DetailLevel   query integer
    IncludeAttachments            true       false      query boolean
    IncludeChartdata            true       false      query boolean
    JSON            true       false      query boolean

    I was expecting to be able to use a serial number, that I know exist in the wats database, since I can with webbrowser type serial number and get the full test report

    Then I want to use the "Try it out" button

     

    0
    Comment actions Permalink
  • Øystein Fallo

    Hi Brian,

    Apologies for very slow response to your post here. The Id field is the report-uuid (Guid or unique identifier) of the report. To locate the uuid of a report, you will need to use the Query method like this:

    https://*.skywats.com/api/report/query?$filter=PN eq '001234'

    The query method use OData (odata.org) semantics.

    The response from Query can be used to find the actual uuid (named "Guid" in the response), and then using this id you will be able to extract the entire report.

    0
    Comment actions Permalink

Please sign in to leave a comment.