windson / vlang-api

A simple REST API using V lang and vweb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vlang-api

A simple REST API with CRUD operations using V lang and vWeb

Author: Navule Pavan Kumar Rao 🤵

Twitter Follow YouTube Channel

Tutorial Series

Code (branch) 💻 Video 📺 Article 📝
main How to deploy V lang REST API on Azure How to deploy V lang REST API on Azure – TutLinks
vweb-cloud-run Deploy V lang CRUD REST API with PostgreSQL on GCP Cloud Run

CURL Commands

POST Notes

curl --location --request POST 'http://localhost:8080/notes/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "message" : "Check the status of the college application",
    "status" : false
}'
curl --location --request POST 'http://localhost:8080/notes/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "message" : "Go to School!",
    "status" : false
}'

GET Notes

curl --location --request GET 'http://localhost:8080/notes/'

GET Notes by Id

curl --location --request GET 'http://localhost:8080/notes/1'