Kong: Certificates has an inconsistent payload when empty

Created on 27 Apr 2017  路  2Comments  路  Source: Kong/kong

Summary

The default payload when you fetch a list that is empty across all other models looks like:

// 20170427131035
// http://localhost:8001/upstreams

{
  "data": [

  ],
  "total": 0
}

Certificates empty payload looks like:

// 20170427130651
// http://localhost:8001/certificates

{

}

Steps To Reproduce

  1. Fetch upstreams endpoint when there is no data
  2. Fetch certificates endpoint when there is no date
  3. Compare

Additional Details & Logs

  • Version: 0.10.1
  • OS: OSX
tasbug

Most helpful comment

0.10.2 it is!

All 2 comments

Nice eyes @nijikokun. Only pending question is whether to fix this in 0.10.2 or 0.11 as it could be considered a "breaking" change.

0.10.2 it is!

Was this page helpful?
0 / 5 - 0 ratings