Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.