blob: dbe63f957c4bd461392369fc359ee41d5cc02fc4 [file]
// Copyright 2015 The LUCI Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
package apigen
// directoryList is a Google Cloud Endpoints frontend directory list structure.
//
// This is the first-level directory structure, which exports a series of API
// items.
type directoryList struct {
Kind string `json:"kind,omitempty"`
DiscoveryVersion string `json:"discoveryVersion,omitempty"`
Items []*directoryItem `json:"items,omitempty"`
}
// directoryItem is a single API's directoryList entry.
//
// This is a This is the second-level directory structure which exports a single
// API's methods.
//
// The directoryItem exports a REST API (restDescription) at its relative
// DiscoveryLink.
type directoryItem struct {
Kind string `json:"kind,omitempty"`
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Version string `json:"version,omitempty"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
DiscoveryRestURL string `json:"discoveryRestUrl,omitempty"`
DiscoveryLink string `json:"discoveryLink,omitempty"`
RootURL string `json:"rootUrl,omitempty"`
Preferred bool `json:"preferred,omitempty"`
}