Go to file
Felipe M bbc452e1f8
release: version bump 0.3.0
2022-08-11 21:28:22 +02:00
.github/workflows ci: fixed buildx support, containerfile and workflows 2022-08-11 17:44:54 +02:00
cmd/bazaar feat: added server configuration using env vars (#7) 2022-08-09 18:27:37 +02:00
helm release: version bump 0.3.0 2022-08-11 21:28:22 +02:00
internal feat: added server configuration using env vars (#7) 2022-08-09 18:27:37 +02:00
pkg feat: added server configuration using env vars (#7) 2022-08-09 18:27:37 +02:00
scripts ci: fixed buildx support, containerfile and workflows 2022-08-11 17:44:54 +02:00
.gitignore ci: docker buildx (#8) 2022-08-10 16:39:32 +02:00
.goreleaser.yml ci: docker buildx (#8) 2022-08-10 16:39:32 +02:00
Containerfile ci: fixed buildx support, containerfile and workflows 2022-08-11 17:44:54 +02:00
LICENSE Initial commit 2021-12-08 21:30:25 +01:00
Makefile ci: docker buildx (#8) 2022-08-10 16:39:32 +02:00
README.md feat: added server configuration using env vars (#7) 2022-08-09 18:27:37 +02:00
go.mod feat: added server configuration using env vars (#7) 2022-08-09 18:27:37 +02:00
go.sum feat: added server configuration using env vars (#7) 2022-08-09 18:27:37 +02:00

README.md

bazaar

A service/library to extract product information from URLs.

Configuration

Variable name Default Description
HTTP_ENABLED true Enable/Disable the HTTP server
HTTP_PORT 8080 Port to serve the HTTP in

Servers

HTTP

  • POST /item

    Parameters:

    • url: The URL to extract information from

    Responses:

    • 200: Information extracted
    • 400: Shop not supported, missing parameters
    • 500: Internal error, check logs
  • GET /liveness

    Responses:

    • 200: Server running

Data model

Currently, this information is extracted from the site (if possbile):

{
    "description": "...",
    "image_url": "https://...",
    "in_stock": false,
    "name": "...",
    "price": 0.0,
    "price_text": "0,0 €",
    "release_date": "2019-03-08T00:00:00Z",
    "url": "https://..."
}

pkg/models/product.go

Supported sites

Support is handled in a best effort basis. Some sites do not provided all exposed fields.