func (api *API) GetProject(w http.ResponseWriter, r *http.Request) {
	var res Result
	var err error
	var project string
	vars := mux.Vars(r)
	pathUnescapeErr := 0
	if project, err = url.PathUnescape(vars["name"]); err != nil {
		pathUnescapeErr++
	}
	if pathUnescapeErr != 0 {
		sendInvalidArgument(w)
		return
	}
	log.Debugf("Requesting project : %s", project)
	p, err := api.db.GetProject(project)
	if err == models.ErrNotFound {
		res = CodeToResult[CodeNotFound]
		res.Message = "Project not found"
		log.Warnf("Project not found %s", project)
		w.WriteHeader(CodeToResult[CodeNotFound].HTTPCode)
		json.NewEncoder(w).Encode(res)
		return
	}
	if err != nil {
		res = CodeToResult[CodeDatabaseError]
		log.Errorf("Could not retrieve project : %+v", err)
		w.WriteHeader(CodeToResult[CodeDatabaseError].HTTPCode)
		json.NewEncoder(w).Encode(res)
		return
	}
	res = CodeToResult[CodeOK]
	res.Data = p
	w.WriteHeader(res.HTTPCode)
	json.NewEncoder(w).Encode(res)
}
/*
GetProject return this template
"data": {
"name": "FirstProject",
"updated_at": 1520122127
}
package api
import (
	"encoding/json"
	"net/http"
	"net/url"
	"github.com/gorilla/mux"
	"github.com/netm4ul/netm4ul/core/database/models"
	log "github.com/sirupsen/logrus"
)