New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/PutskouDzmitry/mongodb

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/PutskouDzmitry/mongodb

  • v0.0.0-20210623112901-35f1b4b64a48
  • Source
  • Go
  • Socket score

Version published
Created
Source

Description

Application for get books with such operations as in table below:

PathMethodDescriptionBody example
/booksGETget all books[{"BookId":1,"AuthorId":2,"PublisherId":1,"NameOfBook":"Belka","YearOfPublication":"2020-10-10", "BookVolume":20, "Number":1},{"BookId":2,"AuthorId":1,"PublisherId":4,"NameOfBook":"Strelka","YearOfPublication":"2021-12-21", "BookVolume":220, "Number":11},{"BookId":2,"AuthorId":3,"PublisherId":4,"NameOfBook":"Space","YearOfPublication":"2010-10-10", "BookVolume":202, "Number":11}]
/booksPOSTcreate new book
/books/{id}GETget book by the id{"BookId":1,"AuthorId":2,"PublisherId":1,"NameOfBook":"Belka","YearOfPublication":"2020-10-10", "BookVolume":20, "Number":1}
/books/{id}/{unit_price}PUTupdate book's price by the id
/books/{id}DELETEdelete book by the id

Usage

  1. Run server on port 8080 go run cmd/main.go
  2. Open URL http://localhost:8080/

Usage unit tests

To run unit tests type: go test ./...

  1. Get api

minikube service -n todo-api --url todo-api

  1. Get pods in namaspace

kubectl get pods --namespace todo-api

  1. Apply app

kubectl apply --namespace todo-api -f todo-api.yaml

  1. Describe app

kubectl describe pod todo-api-6f87588bb7-vtrdp --namespace=todo-api

FAQs

Package last updated on 23 Jun 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc