NVIDIA NEO REST API Guide v2.7.20
NVIDIA NEO REST API Guide v2.7.20

REST API Version

For each command, the response header specifies the REST API version number.

Example:

Copy
Copied!
            

Date: Mon, 03 Aug 2015 07:27:22 GMT Server: TwistedWeb/13.2.0  Content-Length: 1416  Rest-Version: 1.0.0 Content-Type: application/json Set-Cookie: session=.eJyrVopPK0otzlCyKikqTdVRis9MUbKqVlJIUrJS8g3xyvUPD8vyrco29TXyrPKrisqKrPLL8HNJyY5yCcuINPLL9TWKNPYLCbVVqgXqLUgtyk3MS80rgZlWWpxaBDZRKTElNzNPqRYA-Vwk8w.CKCpWg.YLoiHXR3njwngClAe6TazaST2mU; expires=Thu, 03-Sep-2015 07:27:22 GMT; Path=/; HttpOnly Connection: close

Users can validate the REST API version they are using in two ways:

  1. Configure the request header to include "Rest-Version"
    Example:

    Copy
    Copied!
                

    Request headers CSP: active User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36 Rest-Version: 1.0.0 Authorization: Basic YWRtaW46MTIzNDU2 Accept: */* Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8 Cookie: session=.eJyrVopPK0otzlCyKikqTdVRis9MUbKqVlJIUrJS8g3xyvUPD8vyrco29TXyrPKrisqKrPLL8HNJyY5yCcuINPLL9TWKNPYLCbVVqgXqLUgtyk3MS80rgZlWWpxaBDZRKTElNzNPqRYA-Vwk8w.CKCpPw.Mb8EcEEC53Nn-cd_1N4J1BvClfA

  2. Add "Rest-Version" to the URL:
    Example:

    Copy
    Copied!
                

    Get: /neo/app/version?Rest-Version=1.6.0

© Copyright 2023, NVIDIA. Last updated on Nov 16, 2023.