https://github.com/wpcodevo/go-standard-lib-crud-app
Therefore, in this article, we will build a basic CRUD API to cover almost 80% of what you need to know when building an API with the net/http package.
https://github.com/wpcodevo/go-standard-lib-crud-app
crud-api go golang http net-http
Last synced: 7 months ago
JSON representation
Therefore, in this article, we will build a basic CRUD API to cover almost 80% of what you need to know when building an API with the net/http package.
- Host: GitHub
- URL: https://github.com/wpcodevo/go-standard-lib-crud-app
- Owner: wpcodevo
- Created: 2024-03-28T14:05:37.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-27T18:57:52.000Z (almost 2 years ago)
- Last Synced: 2024-05-15T15:32:42.771Z (almost 2 years ago)
- Topics: crud-api, go, golang, http, net-http
- Language: Go
- Homepage: https://codevoweb.com/perform-crud-operations-with-the-net-http-go-standard-library/
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Perform CRUD Operations with the net/http Go Standard Library
With the release of Go 1.22, the net/http package now provides all you need for advanced routing in Golang when building Web APIs. However, understanding how to utilize the net/http package can be quite challenging, especially for advanced features like middleware, sub-routing, path parameters, HTTP methods, etc.
Therefore, in this article, we will build a basic CRUD API to cover almost 80% of what you need to know when building an API with the net/http package.

## Topics Covered
- Run the Go Project on Your Computer
- Run the API with a Frontend App
- Set up the Golang Project
- Set up GORM for Database Operations
- Create the Database Schema
- Connect to the Database Server
- Perform CRUD Operations
- Perform CREATE Operation
- Perform READ Operation
- Perform UPDATE Operation
- Perform DELETE Operation
- Create Routes for HTTP Handlers
- Conclusion
Read the entire article here: [https://codevoweb.com/perform-crud-operations-with-the-net-http-go-standard-library/](https://codevoweb.com/perform-crud-operations-with-the-net-http-go-standard-library/)