Download OpenAPI specification:Download
This document provides a comprehensive reference guide for the F3 Services API. The F3 Services API is a set of RESTful endpoints that allow developers to programmatically interact with F3 Services. This document includes detailed descriptions of each available endpoint, as well as the parameters, methods, and data structures used by the API.
Copyright: © Keture 2023. All rights reserved. This API reference is provided solely for the purpose of development and testing. Any commercial use or redistribution of this API, or any part thereof, is strictly prohibited without the prior written consent of Keture.
The authentication microservice is responsible for managing user accounts, providing a secure login mechanism, and enforcing access control to the system.
| lang required | string Default: "en" |
| name required | string |
| mobile_number required | string |
| password required | string |
| role required | string |
{- "name": "Josiah",
- "mobile_number": "766641295",
- "password": "123456",
- "role": "FISHER"
}{- "message": "Your account has been created successfully."
}| lang required | string Default: "en" |
| mobile_number required | string |
| password required | string |
{- "mobile_number": "766641295",
- "password": "123456"
}{- "id": 5,
- "name": "Josiah",
- "mobile_number": "766641295",
- "role": "FISHER",
- "capability_list": [
- "AUCTIONS/CREATE",
- "AUCTIONS/READ",
- "USERS/READ"
], - "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NSwicm9sZSI6IkZJU0hFUiIsImNhcGFiaWxpdHlfbGlzdCI6IltcIkFVQ1RJT05TL0NSRUFURVwiLFwiQVVDVElPTlMvUkVBRFwiLFwiVVNFUlMvUkVBRFwiXSIsImlhdCI6MTY3NzA5MDAyOCwiZXhwIjoxNjc5NjgyMDI4fQ.eVaKBdWFXYNEfyoJtZd56Fubuj0In2w-1GHcjYA1BoE"
}The bidding microservice is responsible for managing the entire bidding process for auctions, including starting new auctions, managing bids from users, and enforcing auction rules and regulations.
[- {
- "id": 1,
- "grade": "XL",
- "name": "Blue Swimming Crab"
}, - {
- "id": 2,
- "grade": "L",
- "name": "Blue Swimming Crab"
}, - {
- "id": 3,
- "grade": "S",
- "name": "Blue Swimming Crab"
}, - {
- "id": 4,
- "grade": "VS",
- "name": "Blue Swimming Crab"
}
]| lang required | string Default: "en" |
| names required | string |
| grade required | string |
| min_size required | integer |
| image_url required | string |
{- "names": "{\"en\":\"Blue Swimming Crab\",\"ta\":\"நீல நீச்சல் நண்டு\",\"si\":\"නිල් පිහිනුම් කකුළුවා\"}",
- "grade": "XL",
- "min_size": 700,
- "image_url": "image path"
}| lang required | string Default: "en" |
| id required | integer |
| names | string |
| grade | string |
| min_size | integer |
| image_url | string |
{- "id": 1,
- "names": "{\"en\":\"Blue Swimming Crab\",\"ta\":\"நீல நீச்சல் நண்டு\",\"si\":\"නිල් පිහිනුම් කකුළුවා\"}",
- "grade": "XL",
- "min_size": 700,
- "image_url": "image path"
}| lang required | string Default: "en" |
[- {
- "id": 1,
- "scheduled_end_at": "2023-02-25T18:47:49.000Z",
- "item_weight": 25.5,
- "starting_bid_price": 8000,
- "status": "ACTIVE",
- "items": {
- "grade": "XL",
- "name": "Blue Swimming Crab"
}, - "_count": {
- "bids": 0
}
}
]| lang required | string Default: "en" |
| scheduled_end_at required | string |
| item_id required | integer |
| item_weight required | number |
| starting_bid_price required | number |
| images | Array of arrays |
| description | string |
{- "scheduled_end_at": "2023-02-25T04:41:47.405Z",
- "item_id": 1,
- "item_weight": 25.5,
- "starting_bid_price": 8000,
- "description": "Test Description",
- "images": [ ]
}{- "message": "The auction has been uploaded successfully."
}| lang required | string Default: "en" |
| id required | integer |
{- "id": 1,
- "scheduled_end_at": "2023-02-25T18:47:49.000Z",
- "item_weight": 25.5,
- "starting_bid_price": 8000,
- "status": "ACTIVE",
- "auction_images": [ ],
- "items": {
- "grade": "XL",
- "name": "Blue Swimming Crab"
}, - "_count": {
- "bids": 0
}
}| lang required | string Default: "en" |
| auction_id required | integer |
{- "auction_id": 1
}{- "message": "The auction has been successfully cancelled."
}| lang required | string Default: "en" |
[- {
- "id": 1,
- "scheduled_end_at": "2023-02-25T18:47:49.000Z",
- "item_weight": 25.5,
- "starting_bid_price": 8000,
- "status": "ACTIVE",
- "auction_images": [ ],
- "bids": [ ],
- "users": {
- "name": "Josiah"
}, - "items": {
- "grade": "XL",
- "name": "Blue Swimming Crab"
}, - "_count": {
- "bids": 0
}
}
]| lang required | string Default: "en" |
| id required | integer |
{- "id": 1,
- "scheduled_end_at": "2023-02-25T18:47:49.000Z",
- "item_weight": 25.5,
- "starting_bid_price": 8000,
- "status": "CANCELED",
- "users": {
- "name": "Josiah"
}, - "items": {
- "grade": "XL",
- "name": "Blue Swimming Crab"
}, - "_count": {
- "bids": 0
}
}| lang required | string Default: "en" |
[- {
- "id": 1,
- "bid_price": 10000,
- "auctions": {
- "id": 1,
- "scheduled_end_at": "2023-02-25T18:47:49.000Z",
- "item_weight": 25.5,
- "starting_bid_price": 8000,
- "status": "ACTIVE",
- "auction_images": [ ],
- "bids": [
- {
- "bid_price": 10000,
- "user_id": 6
}
], - "users": {
- "name": "Josiah",
- "mobile_number": "766641295"
}, - "items": {
- "grade": "XL",
- "name": "Blue Swimming Crab"
}, - "_count": {
- "bids": 1
}
}
}
]| lang required | string Default: "en" |
[- {
- "id": 1,
- "bid_price": 10000,
- "auctions": {
- "id": 1,
- "scheduled_end_at": "2023-02-25T18:47:49.000Z",
- "item_weight": 25.5,
- "starting_bid_price": 8000,
- "status": "ACTIVE",
- "auction_images": [ ],
- "bids": [
- {
- "bid_price": 10000,
- "user_id": 6
}
], - "users": {
- "name": "Josiah",
- "mobile_number": "766641295"
}, - "items": {
- "grade": "XL",
- "name": "Blue Swimming Crab"
}, - "_count": {
- "bids": 1
}
}
}
]| lang required | string Default: "en" |
| auction_id required | integer |
| bid_price required | number |
{- "auction_id": 1,
- "bid_price": 8000
}{- "message": "The bid has been added successfully."
}| lang required | string Default: "en" |
| id required | integer |
{- "id": 1,
- "bid_price": 10000,
- "auctions": {
- "id": 1,
- "scheduled_end_at": "2023-02-25T18:47:49.000Z",
- "item_weight": 25.5,
- "starting_bid_price": 8000,
- "status": "ACTIVE",
- "auction_images": [ ],
- "bids": [
- {
- "bid_price": 10000,
- "user_id": 6
}
], - "users": {
- "name": "Josiah",
- "mobile_number": "766641295"
}, - "items": {
- "grade": "XL",
- "name": "Blue Swimming Crab"
}, - "_count": {
- "bids": 1
}
}
}| lang required | string Default: "en" |
| bid_id required | integer |
{- "bid_id": 1
}{- "message": "The request was successfully completed."
}The scheduler microservice is responsible for managing the end of auctions, updating the database with the final results, and notifying users who have placed bids on the auction.
| lang required | string Default: "en" |
| auction_id required | integer |
{- "auction_id": 1
}{- "message": "The request was successfully completed."
}