initial commit

This commit is contained in:
lennyaiko
2025-03-27 11:29:36 +01:00
commit 8e2d371218
35 changed files with 548 additions and 0 deletions
+60
View File
@@ -0,0 +1,60 @@
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