61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
openapi: 3.0.3
|
|
info:
|
|
title: Sample Flask API
|
|
description: A simple Flask API with Swagger documentation running in Docker
|
|
version: 1.0.0
|
|
contact:
|
|
name: API Support
|
|
email: support@example.com
|
|
license:
|
|
name: MIT
|
|
url: https://opensource.org/licenses/MIT
|
|
|
|
servers:
|
|
- url: http://localhost:5000
|
|
description: Local development server
|
|
|
|
paths:
|
|
/health:
|
|
get:
|
|
summary: Returns a health message
|
|
responses:
|
|
200:
|
|
description: A successful response
|
|
/eligibility/check:
|
|
post:
|
|
summary: Performs eligibility check on a user
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
transactionId:
|
|
type: string
|
|
description: The transaction ID
|
|
example: Tr201712RK9232P115
|
|
customerId:
|
|
type: string
|
|
description: The customer ID
|
|
example: CN621868
|
|
countryCode:
|
|
type: string
|
|
description: The country code
|
|
example: NGR
|
|
accountId:
|
|
type: string
|
|
description: The account ID
|
|
example: ACN8263457
|
|
msisdn:
|
|
type: string
|
|
description: The MSISDN
|
|
example: 8012345678
|
|
channel:
|
|
type: string
|
|
description: The channel
|
|
example: 100
|
|
responses:
|
|
200:
|
|
description: A successful response
|