
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
github.com/aiescola/go_shop_api
Sample backend project made in Go and used in the android Project:
It's deployed in , although it uses a free dyno, so the first time it will delay a bit or even timeout.
POST methods require authentication, for it, you must first /register
using the appropiate username
and password
in the body (urlencoded)
As for /login
you can either use a POST with the encoded credentials or a GET to fill the credentials in an html form.
/api/products
{
"products": [
{
"code": "MUG",
"name": "Mug",
"price": 5.4
},
{
"code": "TSHIRT",
"name": "T-Shirt",
"price": 12.5
},
{
"code": "PEN",
"name": "Pen",
"price": 3.2
}
]
}
/api/products/{Code}
{
"code": "MUG",
"name": "Mug",
"price": 5.4
}
/api/products/
Raw body:
{ "code": "CODE", "name": "NAME", "price": 99.99 }
/api/discounts/
{
"discounts": [
{
"code": "PRD02",
"type": "product",
"name": "One Product discount (voucher)",
"description": "Mugs at 9.95 for a limited time",
"productCodes": [
"MUG"
],
"price": 9.95
}
]
}
/api/discounts/{code}
{
"code": "PRD02",
"type": "product",
"name": "One Product discount (voucher)",
"description": "Mugs at 9.95 for a limited time",
"productCodes": [
"MUG"
],
"price": 9.95
}
/api/discounts/
Raw body:
{ "code": "TSHIRT", "name": "T-Shirt", "price": 15.90 }
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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.