Fiber: 馃 Congratulations. Is JSON:API supported?

Created on 30 Sep 2020  路  5Comments  路  Source: gofiber/fiber

Congratulations on this project! I only found out today.

Can I ask if it natively supports https://jsonapi.org?

馃 Question

All 5 comments

Thanks for opening your first issue here! 馃帀 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

Thank you @frederikhors!

Could you try to explain what you mean by _natively supporting https://jsonapi.org?_

Fiber supports serializing JSON https://docs.gofiber.io/api/ctx#json

Forgive me.

I meant if there is any nice example of JSON:API server already working to replace Rails in use with projects like ember-data.

But I realized the question was wrong.

Thanks for your great work!

Someone could make a middleware for that or a boilerplate or something :eyes:

To conform with the Client Responsibilities of JSON:API, I hope the mimetype application/vnd.api+json could be injected to c.BodyParser().

Example in Express:

const router = express.Router()
router.use(bodyParser.json({ type: "application/vnd.api+json" }))
Was this page helpful?
0 / 5 - 0 ratings