devapi

package
v0.0.0-...-d1a64ea Latest Latest
Warning

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

Go to latest
Published: May 22, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDevRoutes

func InitDevRoutes()

InitDevRoutes initializes the routes used for development purposes only

Types

type AppUserModel

type AppUserModel struct {
	Email       string `json:"email"`
	Password    string `json:"password"`
	AccountType int    `json:"accountType"` // 0 - NormalUser | 1 - Admin
}

AppUserModel is the model used for creating ApplicationUsers

type DevAPI

type DevAPI int

DevAPI defines the API endpoint for development actions and custom testing

func (*DevAPI) ActivateAppUser

func (v *DevAPI) ActivateAppUser(params *api.Request) api.Response

ActivateAppUser is an endpoint for activating an app user

func (*DevAPI) CreateAppUser

func (v *DevAPI) CreateAppUser(params *api.Request) api.Response

CreateAppUser is an endpoint used for creating application users

Jump to

Keyboard shortcuts

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