Skip to content

windson/vlang-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'