Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
github.com/agrendalath/holiday-offers-in-go
A simple API written in Go for filtering holiday offers retrieved from external API.
You can run the API with:
go run *.go
It runs on port 8080.
If you want to view uncompressed response in pretty form, you can pass debug=true
query param.
The only endpoint retrieves data from external API. You can use query params for filtering results.
URL
/v1/
Method:
GET
URL Params
debug = [bool]
earliest_departure_time = [%H:%M]
earliest_return_time = [%H:%M]
max_price = [numeric]
min_price = [numeric]
star_rating = [numeric]
Success Response:
{
"offers": [
{
"Hotelname": "Catalonia+Punta+Del+Rey",
"Inboundarr": "23/08/2018 00:20",
"Inbounddep": "22/08/2018 20:05",
"Inboundfltnum": "LS1664",
"Outboundfltnum": "LS1663",
"Sellprice": "510.62",
"Starrating": "4"
},
{
"Hotelname": "Catalonia+Las+Vegas",
"Inboundarr": "23/08/2018 00:20",
"Inbounddep": "22/08/2018 20:05",
"Inboundfltnum": "LS1664",
"Outboundfltnum": "LS1663",
"Sellprice": "518.81",
"Starrating": "4"
}
],
"summary": {
"average_price": 514.71,
"cheapest_price": 510.62,
"most_expensive_price": 518.81
}
}
Error Response:
Code: 400 Bad Request
Content: "Unknown parameter: {key}"
OR
Code: 400 Bad Request
Content: "{value} is not valid value for {key}"
OR
Code: 400 Bad Request
Content: "Invalid time format for {key}"
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.