Closed geoah closed 5 years ago
Store
GraphStore
Suggestion
SuggestionItem
Email
User
SuggestionStore
GetAllUsers() ([]*model.User, error)
GetUser(name string) (*model.User, error)
PutUser(user *model.User) error
GetSuggestion(id uint) (*model.Suggestion, error)
PutSuggestion(suggestion *model.Suggestion) error
POST /users
github_token
Changelog
Store
toGraphStore
Suggestion
andSuggestionItem
models, with gorm tagsEmail
attribute toUser
, and add gorm tagsSuggestionStore
with SQL persistence using gormGetAllUsers() ([]*model.User, error)
GetUser(name string) (*model.User, error)
PutUser(user *model.User) error
GetSuggestion(id uint) (*model.Suggestion, error)
PutSuggestion(suggestion *model.Suggestion) error
POST /users
endpoint for user registration (should find a better path for it)github_token
as query paramSuggestionStore