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

Updating API with Flask-RESTful #216

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SanjaySinghRajpoot
Copy link
Contributor

@SanjaySinghRajpoot SanjaySinghRajpoot commented Jan 30, 2023

Description

I have used Flask-RESTful to update the current API format. This is a small step in making FLINT. Cloud modular. This will help was follow the OOPs architecture that we are trying to implement. With the help of Flask-RESTful, we can separate the endpoint and its controllers.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Tested the API endpoints on local host using Postman.

@aornugent
Copy link
Contributor

Please review why test_rest_api_gcbm is failing.

Copy link
Member

@Namyalg Namyalg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python 3.12 does not support a particular module being used here, hence the build is failing.
We can either specify a version < 3.12 or check for an alternate module.

image

Looks like we can take help from this action : https://github.com/marketplace/actions/setup-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants