Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAnalytics ¶
CreateAnalytics godoc @Summary Create and return MRR analytics data @Description Creating MRR analytics data with all components for given period and returning it @Tags analytics @Accept json @Produce json @Success 200 {object} models.ResponseSuccessAnalytics @Failure 400 {object} models.Response @Failure 401 {object} models.Response @Failure 500 {object} models.Response @Security ApiKeyAuth @Param request body models.Period true "Parameters for MRR analytics" @Router /analytics/mrr [post]
func DeleteFileContent ¶
DeleteFileContent godoc @Summary Deleting user's invoices file's content @Description Deleting invoices linked to file from database @Tags files @Accept json @Produce json @Success 200 {object} models.Response @Failure 400 {object} models.Response @Failure 401 {object} models.Response @Failure 500 {object} models.Response @Security ApiKeyAuth @Param filename path string true "Invoice file to delete" @Router /files/{filename} [delete]
func LoadFiles ¶
LoadFiles godoc @Summary Loading user's invoices files list @Description Loading invoices files' names, uploaded by user @Tags files @Accept json @Produce json @Success 200 {object} models.ResponseSuccessLoadFiles @Failure 401 {object} models.Response @Failure 500 {object} models.Response @Security ApiKeyAuth @Router /files [get]
func Login ¶
Login godoc @Summary Logging user in @Description Logging user in by retrieving his data from the database @Tags login @Accept json @Produce json @Success 200 {object} models.ResponseSuccessAuth @Failure 400 {object} models.Response @Failure 500 {object} models.Response @Param request body models.User true "User's email and password" @Router /login [post]
func SaveFileContent ¶
SaveFileContent godoc @Summary Saving user's file's content @Description Saving file locally, parsing its content to database and deleting it from the server @Tags files @Accept json @Produce json @Success 200 {object} models.ResponseSuccessSaveFileContent @Failure 400 {object} models.Response @Failure 401 {object} models.Response @Failure 500 {object} models.Response @Security ApiKeyAuth @Param file formData file true "File to upload" @Router /files [post]
func SignUp ¶
SignUp godoc @Summary Signing user up @Description Signing user up by adding him to the database @Tags signup @Accept json @Produce json @Success 200 {object} models.ResponseSuccessAuth @Failure 400 {object} models.Response @Failure 500 {object} models.Response @Param request body models.User true "User's email and password" @Router /signup [post]