Welcome to the Gophermart API, an HTTP interface designed for interacting with the Gofermart loyalty system. This service allows users to manage orders, credit/debit their wallets, and utilize loyalty points accrued from purchases in the Gofermart online store.
- User Registration: New users can register to the system, creating a unique login.
- Authentication and Authorization: Secure login process and access control.
- Order Management: Users can submit and track their purchase orders.
- Loyalty Points: Earn, track, and redeem loyalty points for purchases.
- Account Management: View and manage account balance and transactions.
- User Registration: Users sign up to the Gophermart loyalty system.
- Making a Purchase: Users buy items from the Gofermart online store.
- Loyalty Points Calculation: The system processes the order for loyalty points.
- Order Submission: Users submit their order number to the loyalty system.
- Order Verification & Points Accrual: The system verifies the order and credits loyalty points.
- Redemption: Users redeem points for discounts on future purchases.
- POST /api/user/register: Register a new user.
- POST /api/user/login: Authenticate a user and retrieve a token.
- GET /api/user/orders: Retrieve a list of submitted orders.
- POST /api/user/orders: Submit a new order number.
- GET /api/user/balance: View current balance and total loyalty points.
- POST /api/user/balance/withdraw: Withdraw points for a new order.
- GET /api/user/withdrawals: Retrieve information about fund withdrawals.
- ApiKeyAuth: Secure API access with bearer token authorization.
Standard HTTP status codes are used to indicate the success or failure of an API request. In case of an error, a detailed message will be returned to aid in debugging.
- Swagger: Explore the full API specifications and interact with the API directly through the Swagger UI.
For further inquiries or assistance, please contact Nikita Aleksandrov at nik29200018@gmail.com.
This API is provided under the Apache 2.0 license. For more details, visit the license page.