2016-05-18 17:17:28 +00:00
|
|
|
// NOTE: Subject to change, do not rely on this package from outside git-lfs source
|
|
|
|
package api
|
|
|
|
|
|
|
|
// RequestSchema provides a schema from which to generate sendable requests.
|
|
|
|
type RequestSchema struct {
|
|
|
|
// Method is the method that should be used when making a particular API
|
|
|
|
// call.
|
|
|
|
Method string
|
|
|
|
// Path is the relative path that this API call should be made against.
|
|
|
|
Path string
|
2016-05-25 19:31:12 +00:00
|
|
|
// Operation is the operation used to determine which endpoint to make
|
2016-11-15 17:07:11 +00:00
|
|
|
// the request against (see github.com/git-lfs/git-lfs/config).
|
2016-05-25 19:31:12 +00:00
|
|
|
Operation Operation
|
2016-05-18 17:17:28 +00:00
|
|
|
// Query is the query parameters used in the request URI.
|
|
|
|
Query map[string]string
|
|
|
|
// Body is the body of the request.
|
|
|
|
Body interface{}
|
|
|
|
// Into is an optional field used to represent the data structure into
|
|
|
|
// which a response should be serialized.
|
|
|
|
Into interface{}
|
|
|
|
}
|