Commit 6d3d9981 authored by ale's avatar ale

Set JSON metadata tags in CheckResourceAvailability req/resp types

parent 48fa0495
Pipeline #4595 passed with stages
in 5 minutes and 7 seconds
......@@ -92,14 +92,14 @@ func (r *SetResourceStatusRequest) Serve(rctx *RequestContext) (interface{}, err
// CheckResourceAvailabilityRequest is an unauthenticated request that
// can tell if a given resource ID is available or not.
type CheckResourceAvailabilityRequest struct {
Type string
Name string
Type string `json:"type"`
Name string `json:"name"`
}
// CheckResourceAvailabilityResponse is the response type for
// CheckResourceAvailabilityRequest.
type CheckResourceAvailabilityResponse struct {
Available bool
Available bool `json:"available"`
}
// Authorize the request - this one requires no authentication.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment