Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
github.com/amc-hawk/instagram-backend-api
This is the task done for Appointy
Tasks Done here :
Create an User
Should be a POST request
Use JSON request body
URL should be ‘/users'
Get a user using id
Should be a GET request
Id should be in the url parameter
URL should be ‘/users/<id here>’
I used Go for the very first time, i have used other backend languages earlier but this one was quite different. Documentation provided on the internet is very easy to grasp and move forward with your project. I
Basic Setup :
go get github.com/mongodb/mongo-go-driver
Connection of Go with MongoDb :
clientOptions := options.Client().ApplyURI("mongodb://localhost:27017")
fmt.Println("ClientOptopm TYPE:", reflect.TypeOf(clientOptions), "\n")
client, err := mongo.Connect(context.TODO(), clientOptions)
if err != nil {
fmt.Println("Mongo.connect() ERROR: ", err)
os.Exit(1)
}
ctx, _ := context.WithTimeout(context.Background(), 15*time.Second)
I will work upon this project further and will update the Repo in future.
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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.