mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
REST APIv1 now uses lowercase JSON property names
- Updated rest-apiv1.sh to pretty print JSON with jq if available - Fixed some missing checks on JSON testutils
This commit is contained in:
@@ -16,16 +16,16 @@ const (
|
||||
baseURL = "http://localhost/api/v1"
|
||||
|
||||
// JSON map keys
|
||||
mailboxKey = "Mailbox"
|
||||
idKey = "Id"
|
||||
fromKey = "From"
|
||||
subjectKey = "Subject"
|
||||
dateKey = "Date"
|
||||
sizeKey = "Size"
|
||||
headerKey = "Header"
|
||||
bodyKey = "Body"
|
||||
textKey = "Text"
|
||||
htmlKey = "Html"
|
||||
mailboxKey = "mailbox"
|
||||
idKey = "id"
|
||||
fromKey = "from"
|
||||
subjectKey = "subject"
|
||||
dateKey = "date"
|
||||
sizeKey = "size"
|
||||
headerKey = "header"
|
||||
bodyKey = "body"
|
||||
textKey = "text"
|
||||
htmlKey = "html"
|
||||
)
|
||||
|
||||
func TestRestMailboxList(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user