mirror of
https://github.com/gluster/glusterd2.git
synced 2026-02-05 12:45:38 +01:00
15 lines
437 B
Go
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
|