Skip to content

Updating API with Flask-RESTful#216

Open
SanjaySinghRajpoot wants to merge 2 commits into
moja-global:masterfrom
SanjaySinghRajpoot:flask
Open

Updating API with Flask-RESTful#216
SanjaySinghRajpoot wants to merge 2 commits into
moja-global:masterfrom
SanjaySinghRajpoot:flask

Conversation

@SanjaySinghRajpoot
Copy link
Copy Markdown
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 aornugent requested a review from Namyalg February 1, 2023 20:08
@aornugent
Copy link
Copy Markdown
Contributor

Please review why test_rest_api_gcbm is failing.

Copy link
Copy Markdown
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