Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/PutskouDzmitry/mongodb
Application for get books with such operations as in table below:
Path | Method | Description | Body example |
---|---|---|---|
/books | GET | get 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}] |
/books | POST | create new book | |
/books/{id} | GET | get book by the id | {"BookId":1,"AuthorId":2,"PublisherId":1,"NameOfBook":"Belka","YearOfPublication":"2020-10-10", "BookVolume":20, "Number":1} |
/books/{id}/{unit_price} | PUT | update book's price by the id | |
/books/{id} | DELETE | delete book by the id |
8080
go run cmd/main.go
http://localhost:8080/
To run unit tests type:
go test ./...
minikube service -n todo-api --url todo-api
kubectl get pods --namespace todo-api
kubectl apply --namespace todo-api -f todo-api.yaml
kubectl describe pod todo-api-6f87588bb7-vtrdp --namespace=todo-api
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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.