Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integration des 3 pages dans react et mise en place des routes avec l… #2

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Action.wps
Binary file not shown.
Binary file added ArgentBank-website_tussing_samuel.zip
Binary file not shown.
Binary file added Soutenance projet 11.dps
Binary file not shown.
Binary file added Soutenance projet 11.pdf
Binary file not shown.
6 changes: 6 additions & 0 deletions Tussing_Samuel_code_phase_1_102023.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Lien vers le repo GitHub du projet 11 ArgentBank :

https://github.com/SamuelTussing/ArgentBank-website


Tussing Samuel
327 changes: 327 additions & 0 deletions Tussing_Samuel_swagger_1phase_2_102023.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,327 @@
swagger: '2.0'
info:
title: Bank Argent API documentation
description: Contains all available API endpoints in this codebase
version: 1.0.0
termsOfService: http://swagger.io/terms/
host: localhost:3001
basePath: /api/v1
schemes:
- http
paths:
/user/login:
post:
tags:
- User Module
summary: Login
description: API for Login
parameters:
- in: body
name: body
description: Login Payload
required: true
schema:
$ref: '#/definitions/Login'
produces:
- application/json
responses:
'200':
description: Login Successfully
schema:
$ref: '#/definitions/LoginResponse'
'400':
description: Invalid Fields
'500':
description: Internal Server Error
/user/signup:
post:
tags:
- User Module
summary: Signup
description: API for Signup
parameters:
- in: body
name: body
description: Signup Payload
required: true
schema:
$ref: '#/definitions/User'
produces:
- application/json
responses:
'200':
description: Signup Successfully
schema:
$ref: '#/definitions/ApiResponse'
'400':
description: Invalid Fields
'500':
description: Internal Server Error
/user/profile:
post:
security:
- Bearer: []
tags:
- User Module
summary: User Profile API
description: API for fetching a user profile
responses:
'200':
description: User profile retrieved successully
schema:
$ref: '#/definitions/ApiResponse'
'400':
description: Invalid Fields
'500':
description: Internal Server Error
put:
security:
- Bearer: []
tags:
- User Module
summary: User Profile API
description: API for updating a user profile
parameters:
- in: body
name: body
description: Update user profile attributes
required: true
schema:
$ref: '#/definitions/UserProfile'
produces:
- application/json
responses:
'200':
description: User profile retrieved successully
schema:
$ref: '#/definitions/ApiResponse'
'400':
description: Invalid Fields
'500':
description: Internal Server Error

/user/accounts/{accountId}:
get:
security:
- Bearer: []
tags:
- Account
summary: Get monthly transaction history
description: This call returns transactions history for a month for an account
parameters:
- in: path
name: accountId
description: unique account ID
required: true
type: string
responses:
'200':
description: Historic retrieved successully
schema:
$ref: '#/definitions/Transaction'
'401':
description: Unauthorized, authentication failure.
'403':
description: Forbidden
'404':
description: Not found
'408':
description: Request Timeout
'500':
description: Internal Server Error

/user/transaction/{transactionId}:
get:
security:
- Bearer: []
tags:
- Account
summary: Get transaction details
description: This call returns transactions details
parameters:
- in: path
name: transactionId
description: unique transaction Id
required: true
type: string
responses:
'200':
description: Historic retrieved successully
schema:
$ref: '#/definitions/TransactionDetail'
'401':
description: Unauthorized, authentication failure.
'403':
description: Forbidden
'404':
description: Not found
'408':
description: Request Timeout
'500':
description: Internal Server Error

put:
security:
- Bearer: []
tags:
- Account
summary: Transaction category or note update
description:
This call allows the user to add or modify a category or a note for a given
transaction
parameters:
- in: body
name: body
description: Update transaction attribute
required: true
schema:
$ref: '#/definitions/ModifyCat'
- in: path
name: transactionId
description: unique transaction Id
required: true
type: string
produces:
- application/json
responses:
'200':
description: Changes saved successfully
schema:
$ref: '#/definitions/NewTransactionInfos'
'401':
description: Unauthorized, authentication failure.
'408':
description: Request Timeout
'500':
description: Internal Server Error



securityDefinitions:
Bearer:
type: apiKey
name: Authorization
in: header
definitions:
User:
properties:
email:
type: string
description: user email
password:
type: string
description: user password
firstName:
type: string
description: user first name
lastName:
type: string
description: user last name
userName:
type: string
description: user public name
Login:
properties:
email:
type: string
description: user email
password:
type: string
description: user password
ApiResponse:
type: object
properties:
status:
type: integer
message:
type: string
body:
type: object
properties:
id:
type: string
email:
type: string
LoginResponse:
type: object
properties:
token:
type: string
UserProfile:
type: object
properties:
userName:
type: string
Transaction:
type: array
items:
type: object
properties:
currency:
type: string
date:
type: string
format: date
transactionID:
type: string
desc:
type: string
amount:
type: number
balance:
type: number

TransactionDetail:
type: object
properties:
currency:
type: string
date:
type: string
format: date
transactionID:
type: string
desc:
type: string
amount:
type: number
balance:
type: number
Transaction type:
type: string
Category :
type: string
Note:
type: string

NewTransactionInfos:
type: object
properties:
currency:
type: string
date:
type: string
format: date
transactionID:
type: string
desc:
type: string
amount:
type: number
balance:
type: number
Transaction type:
type: string
Category :
type: string
Note:
type: string

ModifyCat:
type: object
properties:
Category :
type: string
Note:
type: string

2 changes: 1 addition & 1 deletion designs/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ body {
}

.hero {
background-image: url('../img/bank-tree.jpeg');
background-image: url('../img/bank-tree.avif');
background-position: 0 -50px;
background-size: cover;
background-repeat: no-repeat;
Expand Down
Loading