Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateEndpointCmd = &cobra.Command{
Use: "create [--file <path>] [--auth-type <type>] [--auth-properties <properties>] [--request-content-type <type>] [--request-schema <schema>] [--method <method>] [--status <status>] [--content-type <type>] [--charset <charset>] [--headers <headers>] [--schema <schema>] [--body <body>]",
Short: "Create a new mock endpoint",
Run: createEndpoint,
}
CreateEndpointCmd is the command to create a new mock endpoint
View Source
var DeleteEndpointCmd = &cobra.Command{ Use: "delete [id]", Short: "Delete an existing mock endpoint", Args: cobra.ExactArgs(1), Run: deleteEndpoint, }
DeleteEndpointCmd is the command to delete an existing mock endpoint
View Source
var ENDPOINT_SCHEMA string
View Source
var GetEndpointCmd = &cobra.Command{ Use: "get [id or mockIdentifier]", Short: "Get details of an endpoint", Args: cobra.ExactArgs(1), Run: getEndpointCmd, }
GetEndpointCmd is the command to get details of an existing mock endpoint
View Source
var ListEndpointsCmd = &cobra.Command{
Use: "list",
Short: "List all created mock endpoints",
Run: listEndpoints,
}
ListEndpointsCmd is the command to list all created mock endpoints
View Source
var LoginCmd = &cobra.Command{ Use: "login [email]", Short: "Login to MockThis", Args: cobra.MaximumNArgs(1), Run: login, }
LoginCmd is the command to login to MockThis
View Source
var RegisterCmd = &cobra.Command{
Use: "register",
Short: "Register a new user",
Run: register,
}
RegisterCmd is the command to register a new user
View Source
var UpdateEndpointCmd = &cobra.Command{ Use: "update [id]", Short: "Update an existing mock endpoint", Args: cobra.ExactArgs(1), Run: updateEndpoint, }
UpdateEndpointCmd is the command to update an existing mock endpoint
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.