1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-05 12:45:38 +01:00
Files
glusterd2/pkg/api/endpoints.go
Prashanth Pai 21e3be2033 Add request and response types
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-02-14 14:08:07 +05:30

15 lines
437 B
Go

package api
// Endpoint represents an HTTP API endpoint.
type Endpoint struct {
Name string `json:"name"`
Description string `json:"description"`
Method string `json:"methods"`
Path string `json:"path"`
RequestType string `json:"request-type"`
ResponseType string `json:"response-type"`
}
// ListEndpointsResp is the response sent to client for a list endpoints request.
type ListEndpointsResp []Endpoint