0% found this document useful (0 votes)
18 views

Assignment 7

The assignment focuses on understanding mobile data types, APIs, and the use of Postman for API testing. It requires students to explore local, sensor, and external data, define APIs, and implement a Flutter app that includes a symptoms list and disease details, utilizing a provided API. Submission includes a zipped folder of project files, a Postman test screenshot, and app screenshots, ensuring the app is functional and user-friendly.

Uploaded by

wfarouk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Assignment 7

The assignment focuses on understanding mobile data types, APIs, and the use of Postman for API testing. It requires students to explore local, sensor, and external data, define APIs, and implement a Flutter app that includes a symptoms list and disease details, utilizing a provided API. Submission includes a zipped folder of project files, a Postman test screenshot, and app screenshots, ensuring the app is functional and user-friendly.

Uploaded by

wfarouk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Exploring Mobile Data Types, APIs, and Postman Usage Assignment

Objective

To understand the types of data that can be accessed in a mobile app, the concept and
importance of APIs, and the role of Postman in testing APIs. Additionally, implement a
Flutter app with a symptoms list and disease details using the provided API and a bottom
navigation bar.

Assignment Tasks

1. Explore Mobile App Data Types

 Research and describe the types of data that can be accessed and used in a mobile
app, such as:

o Local data (e.g., SQLite, Shared Preferences).

o Sensor data (e.g., accelerometer, GPS).

o External data (e.g., API responses, files).

 Provide examples of real-world scenarios where each type is used.

2. Understand APIs and Postman

1. What is an API?

o Define APIs (Application Programming Interfaces).

o Explain their importance in modern mobile apps.

o Discuss how APIs enable apps to retrieve and send data to servers.

2. What is Postman?

o Define Postman and its role in API testing.

o Describe how to use Postman to test an API, including:

 Sending a request.

 Configuring headers and body.

 Viewing the response.


3. Practical Task

o Test the provided API


(https://web-production-2748b.up.railway.app/predict) in Postman:

 Set up a POST request.

 Add the example body:

json

Copy code

"symptoms": [1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

 Capture a screenshot of the response and include it in the


submission.

3. Flutter App Implementation

1. Symptoms List Screen

o Create a screen displaying a list of symptoms grouped by categories.

o Allow users to select symptoms using checkboxes or toggles.

2. Disease Details Screen

o Send the selected symptoms to the provided API.

o Display the API response, including:

 Predicted disease.

 Additional details about the disease (mock data can be used).

3. Bottom Navigation Bar

o Implement a bottom navigation bar


Guidelines

1. Test the API thoroughly in Postman before integrating it into the app.

2. Use proper state management for handling user input and API responses.

3. Ensure the app is responsive and user-friendly.

4. Organize code into separate files for better readability.

Submission Requirements

1. Submit the following:

o A zipped folder containing the dart files,assets folder and pubspec.yaml.

o A screenshot of the Postman API test with the response.

o Screenshots of the app running in an emulator or on a device.

2. Ensure the app is free of runtime errors.

You might also like