Skip to content

Instantly share code, notes, and snippets.

@bcvery1
Created January 29, 2020 14:14
Show Gist options
  • Save bcvery1/f13da943aa537e53852cb5e6c5e513a5 to your computer and use it in GitHub Desktop.
Save bcvery1/f13da943aa537e53852cb5e6c5e513a5 to your computer and use it in GitHub Desktop.
// GetPluginPairs gets a list of plugin pairs (each pair has a plugin and a plugin version). No body is required or
// expected for this endpoint.
//
// This endpoint will return an array of Plugin-PluginVersion pairs, under the key ". Here is an example return
// body:
// {
// pairs: [
// {
// plugin: {
// id: 1,
// name: "My First Plugin",
// type: "fireAndForget",
// events: ["createShow"],
// created_date: 01-01-1970,
// },
// plugin_version {
// id: 1,
// plugin_id: 1,
// asset_id: 4,
// name: "My First Plugin",
// status: "foo",
// can_parallel: true,
// created_date: 01-01-1970,
// }
// ]
// }
func (c PluginController) GetPluginPairs(u *user.User, w http.ResponseWriter, r *http.Request, route Route) {
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment