api2go icon indicating copy to clipboard operation
api2go copied to clipboard

JSONAPI.org Implementation for Go

Results 38 api2go issues
Sort by recently updated
recently updated
newest added

Hi! I could not find a way to easily to return a response with top-level custom metadata, i.e. ``` { "data": ... "meta": "my data" } ``` but only found...

when unmarshaling data that was marshaled with the "included" portion (using `GetReferencedStructs` interface) the jsonapi unmarshaling does not add the included. I'd suggest some interface like `SetToOneReferencedStructs(name string, referenced interface{})...

bug

I'm having trouble finding how to return a to one relationship. I forked the repo, and tried to add a to-one relationship [here](https://github.com/manyminds/api2go/compare/master...stobias123:master) I can't seem to figure out how...

Right now if you write a auth middleware and you want to stop processing in it because the user credentials are not correct, you can't do that. In gin i...

enhancement

How can I achieve response in the following manner { "links":{ "self": } "data":[ ... ] } whenever I implemented GetCustomUrl link is being created inside data. Is there any...

Just curious about the status of the project since last commit is made almost 1 year ago and development/maintenance seems like is stalled.

I have a struct similar to the following: ``` type Device struct { UUID gocql.UUID `json:"-" db:"uuid"` Name string `json:"name" db:"name"` Tags map[string]string `json:"tags" db:"tags"` } ``` I've satisfied the...

I've been using this library for a side-project and it's super great! One thing I've noticed that I'd love to see if it's possible would be to pretty-print the json...

Using api2go I noticed you coupled the types with the route names, and I want to have singular types and plural routes. So I added a `RouteNamer` interface. If you...

This problem is similar to the one described in issue #125. In this case, the program panics when a relationship is defined with multiple resource types. I've forked @tanmayambre's test...

bug
question