TLDR; How to create REST api on model having Foreign key (or db relationship in general) in buffalo framework?
I am absolute beginner in go and I am trying to write an RESTFul service using buffalo framework following following example given on it…
gobuffalo i18n translator is accessible in actions but how can I access it on my models? It requires the buffalo.Context as a param in T *i18n.Translator.
Thank you in advance!
I have followed the steps according to the documentation(https://gobuffalo.io/documentation/guides/auth/) to install the $ buffalo plugins install github.com/gobuffalo/buffalo-auth@latest.Yet,it did not work.
I tried using the middleware authorize…
I'm working on a SCIM api using https://github.com/elimity-com/scim, which gives me an http.Handler that I have mounted using app.Mount("/api/v1/scim", scimHandler). Requests route to the scim handler, but have a trailing / appended to them which…
I am trying to use buffalo framework (Golang) with Mongodb Database as database.yml file as follows:
development:
database: myproject_development
user: mongodb
password: mongodb
host: 127.0.0.1
url: mongodb://127.0.0.1:27017
test:
url: {{envOr…
I want to catch all errors in the production environment and send them to the Sentry. But I can't understand how to add it as a middleware. Do I need to write a custom logger than implement logger.Logger interface or I can do it somehow differently?
Description
Just started using Buffalo, trying out all the beautiful features :)
I'm having an issue however with the "generate resource" command in combination with the "--skip-model" flag. When this flag is used, all the generated functions…
I am trying to integrate Elastic APM and Sentry into my website using Buffalo. The interesting files are as follows:
handlers/sentryHandler.go
package handlers
import (
sentryhttp "github.com/getsentry/sentry-go/http"
…
I'm starting a project and already check how useful is gobuffalo/pop.
I have never previously used a framework for my GO projects. I just used the stdlib and I'm used to working with Django too.
In Django it is pretty straight forward to…
I updated question for clarity (as requested).
I use Buffalo framework. I have lots of messages in logs informing that someone on the internet tries to reach nonexistent endpoint or uses HTTP method that is not supported by the service. I think,…
When trying to start a new buffalo project in my Go Path I get this error, in my search I don't see any references to this error in the docs or in other questions on different forums. I've tried different names in different forms but I always get…
I'm working with someone to build a Buffalo app. They are on Windows and I'm on Linux. After generating a model, they get a 500 error when visiting the list route: http://localhost:3000/items/. The problem is very similar to issue 1757 except the…