pyrohlik/rohlik/endpoints.py
2024-11-17 10:38:58 +01:00

13 lines
No EOL
581 B
Python

from apiclient import endpoint
@endpoint(base_url='https://www.rohlik.cz')
class Endpoints:
product: str = 'api/v1/products/{product_id}'
order: str = 'api/v3/orders/{order_id}'
orders_delivered: str = 'api/v3/orders/delivered'
recipe: str = 'services/frontend-service/recipe/{recipe_id}'
prices: str = 'api/v1/products/{product_id}/prices'
stock: str = 'api/v1/products/{product_id}/stock'
description: str = 'api/v1/products/{product_id}/description'
composition: str = 'api/v1/products/{product_id}/composition'
cart: str = 'api/v2/cart'