-
How to create an API with Golang and Fiber – Part 05
For our API we will have an endpoint responsible for uploads. This endpoint will be a multipart/form-data content type. Go to /pkg/handler/expenses.go and implement the upload action.
-
How to create an API with Golang and Fiber – Part 04
Since we’ve integrated MySQL into our API, we can implement our endpoints properly. We will implement the following handlers: Index Show Store Update Destroy The Index function will list all expenses available.
-
How to create an API with Golang and Fiber – Part 03
If you got to this point you have the main structure in place. What we are going to do next is to integrate MySQL into our API. For that, we will be using GORM, which is an ORM (Object Relational Mapping) for Go. Check if you have MySQL up and running on your machine. I…
-
How to create an API with Golang and Fiber – Part 02
Routing is an important piece for every web application. Is here that you will map the client’s requests to your server. To begin our Figo API will have five endpoints, that will be responsible to create, read, update, and delete (CRUD) our expenses. Since we are implementing using the RESTFul architectural style, our program will…
-
How to create an API with Golang and Fiber – Part 01
Go is an opensource programming language to build simple, reliable, and performant distributed systems. Fiber is a web framework written in Go built on top of FastHTTP that is faster than the Golang HTTP standard library. It has a very similar design approach to ExpressJS. To start you will need to have Golang installed on…
