request

package
v0.0.0-...-51c5060 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: CC0-1.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	ServiceID        string          `json:"service_id" sql:"size(255)"`
	PlanID           string          `json:"plan_id" sql:"size(255)"`
	OrganizationGUID string          `json:"organization_guid" sql:"size(255)"`
	SpaceGUID        string          `json:"space_guid" sql:"size(255)"`
	RawParameters    json.RawMessage `json:"parameters,omitempty" sql:"-"`
}

Request is the format of the body for all create instance requests.

{
  "service_id":        "service-guid-here",
  "plan_id":           "plan-guid-here",
  "organization_guid": "org-guid-here",
  "space_guid":        "space-guid-here"
}

func ExtractRequest

func ExtractRequest(req *http.Request) (Request, response.Response)

ExtractRequest will look at the request body and parse it into a Request struct to be used programmatically.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL