https://github.com/isma1306/go-api
go restful api to get to learn about it.
https://github.com/isma1306/go-api
Last synced: about 1 year ago
JSON representation
go restful api to get to learn about it.
- Host: GitHub
- URL: https://github.com/isma1306/go-api
- Owner: Isma1306
- Created: 2022-11-07T18:42:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-11T16:17:22.000Z (over 3 years ago)
- Last Synced: 2025-03-24T07:45:24.026Z (about 1 year ago)
- Language: Go
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-api
go restful api to get to learn about it. Followed this guide https://tutorialedge.net/golang/creating-restful-api-with-golang/ and then went crazy.
## how to use it
start the api put your username and password of mongo db atlas and the api will start.
You can change the behavior from ./utils/utils.go and comment the Prompt function if you dont want to type each time you start the server.
### working paths
"/" home
"/all/" return all articles
"/article/" POST article
"/article/{id}", POST, UPDATE, DELETE
### interface
{
Content":string,
"Desc":string,
"Title":string,
"_id":string
}
enjoy!