stephanstapel / BrickOwlSharp

.net library to connect to BrickOwl brick shop
MIT License
1 stars 0 forks source link

Color List endpoint #4

Closed norberto5 closed 2 months ago

norberto5 commented 4 months ago

Hey, I'm working on syncing BrickLink to BrickOwl and I see that BrickOwl has a nice Color List endpoint that would help me with this. Can you implement it?

As an alternative, I know I can implement Rebrickable API for this purpose

Endpoint: GET https://api.brickowl.com/v1/catalog/color_list

Example response:

{
    "0": {
        "id": "0",
        "name": "Not Applicable",
        "hex": "000000",
        "peeron_names": [
            null
        ],
        "ldraw_ids": [
            null
        ],
        "bl_ids": [
            "0"
        ],
        "bl_names": [
            "N/A"
        ],
        "lego_colors": []
    },
    "2": {
        "id": "2",
        "name": "Chrome Gold",
        "hex": "f1f2e1",
        "peeron_names": [
            "ChromeGold"
        ],
        "ldraw_ids": [
            "334"
        ],
        "bl_ids": [
            "21"
        ],
        "bl_names": [
            "Chrome Gold"
        ],
        "lego_colors": [
            {
                "lego_id": "310",
                "raw_name": "METALIZED GOLD"
            }
        ]
    },
    "3": {
        "id": "3",
        "name": "Pink",
        "hex": "FFC0CB",
        "peeron_names": [
            "Pink"
        ],
        "ldraw_ids": [
            "13"
        ],
        "bl_ids": [
            "23"
        ],
        "bl_names": [
            "Pink"
        ],
        "lego_colors": [
            {
                "lego_id": "9",
                "raw_name": "LIGHT REDDISH VIOLET"
            }
        ]
    },
    "4": {
        "id": "4",
        "name": "Purple",
        "hex": "a5499c",
        "peeron_names": [
            "Purple"
        ],
        "ldraw_ids": [
            "22"
        ],
        "bl_ids": [
            "24"
        ],
        "bl_names": [
            "Purple"
        ],
        "lego_colors": [
            {
                "lego_id": "104",
                "raw_name": "BRIGHT VIOLET"
            }
        ]
    },
//... more entries
}
stephanstapel commented 4 months ago

Hi @norberto5 , as I have no immediate need for this endpoint, it will probably take some time until I can implement this. If you like, we can discuss your implementation in a pull request.