
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
github.com/sagardafle/rest-api-crud-operations-using-go-language
Advanced tools
#REST API CRUD operations using GO Language REST API CRUD operations using go language and mongo database.
######This assignment emphasizes the usage of REST APIs in GO programming language. We will use Mongo NoSQL database for data persistence. We shall be performing 4 major CRUD operations like POST, GET, UPDATE and DELETE.######
The connection string to mongodb on MongoLab is :
mongodb://sagardafle:sagardafle123@ds045454.mongolab.com:45454/cmpe-273-sagardafle
The name of the table is : user_details.
Description: Location and Trip Planner (Go) using httprouter handler and Google Maps API
Input: Get, Post, Put, Delete requests from Postman
Response: 200 OK/ 404 not found
Usage: ######Create Location######
localhost:1111/locations
{ "Name":"AT&T Park", "Address":"24 Willie Mays Plaza", "City":"San Francisco", "State":"CA", "Zip":"94107" } Response: 201 Created { "_id": "562c525be7024724c440210f", "Name": "AT&T Park", "Address": "24 Willie Mays Plaza", "City": "San Francisco", "State": "CA", "Zip": "94107", "Coordinates": { "Lattitude": "37.7781747", "Longitude": "-122.3907248" } }
######Retrieve Location######
localhost:1111/locations/143c52ffe7057723488f2e40
Response:
200 OK { "_id": "143c52ffe7057723488f2e40", "Name": "AT&T Park", "Address": "24 Willie Mays Plaza", "City": "San Francisco", "State": "CA", "Zip": "94107", "Coordinates": { "Lattitude": "37.7781747", "Longitude": "-122.3907248" } }
######Update Location######
PUT Request:
localhost:1111/locations/143c52ffe7057723488f2e40
{ "Address":"900 North Point St #52", "City":"San Francisco", "State":"CA", "Zip":"94109" } Response: 201 Created { "_id": "562c52ffe7024723488f2b30", "Name": "AT&T Park", "Address": "900 North Point St #52", "City": "San Francisco", "State": "CA", "Zip": "94109", "Coordinates": { "Lattitude": "37.8055762", "Longitude": "-122.4229471" } }
######Delete Location######
DELETE Request:
localhost:1111/locations/143c52ffe7057723488f2e40
Response: 200 OK
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.