Skip to content

Commit 1785c6a

Browse files
authored
Add: JSON models on README
1 parent 4df9d5b commit 1785c6a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,39 @@ A React app with a form that when the user provides his flight number and last n
44
## Demo
55
https://gabrielnvg-flight-checkin.surge.sh
66

7+
Two JSON files must be created using the models below and their paths added to the fetch code.
8+
9+
## Data
10+
### JSON Template - Flights
11+
```js
12+
[
13+
{
14+
"flightNumber": number,
15+
"passengers": [
16+
{
17+
"lastName": string,
18+
"title": "Mr. | Ms. | Dr. | Prof. | Other"
19+
}
20+
]
21+
}
22+
]
23+
```
24+
25+
### JSON Template - Users
26+
```js
27+
[
28+
{
29+
"firstName": string,
30+
"lastName": string,
31+
"nationality": string,
32+
"phoneNumber": number,
33+
"email": string,
34+
"passportNumber": number,
35+
"isTermsAndConditionsAccepted": bool
36+
}
37+
]
38+
```
39+
740
## Dependencies
841
- [Node](https://nodejs.org/en/) 12.15.0
942
- [npm](https://www.npmjs.com/get-npm) 6.13.4

0 commit comments

Comments
 (0)