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

Unified API Browser when using modular server #391

Merged
merged 1 commit into from
Mar 25, 2023

Conversation

nycholas
Copy link
Member

The expected behavior is that when using the modular way, the API Browser merges in one, instead of having one API Browser for each.

Now, the server is aware of the SERVER_NAME Flask configuration, it is being used by API Browser to request the correct server, besides that, the API Browser is able to call servers in different domains. For that configuration, the JSONRPCSite generates the path and base_url variables from SERVER_NAME, APPLICATION_ROOT, and PREFERRED_URL_SCHEME.

It is the first step to providing a Browse Schema to improve documentation and examples from API (JSON-RPC methods).

Resolves: #388
See also: #378, #377, #376, #374, #373, and #370

@nycholas nycholas force-pushed the feature/388-unified-api-browser branch 7 times, most recently from 7c31635 to bebd812 Compare March 25, 2023 19:26
The expected behavior is that when using the modular way, the API
Browser merges in one, instead of having one API Browser for each.

Now, the server is aware of the `SERVER_NAME` Flask configuration,
it is being used by API Browser to request the correct server,
besides that, the API Browser is able to call servers in different
domains. For that configuration, the `JSONRPCSite` generates the
`path` and `base_url` variables from `SERVER_NAME`, `APPLICATION_ROOT`,
and `PREFERRED_URL_SCHEME`.

It is the first step to providing a Browse Schema to improve
documentation and examples from API (JSON-RPC methods).

Resolves: #388
See: #378, #377, #376, #374, #373, and #370
@nycholas nycholas force-pushed the feature/388-unified-api-browser branch from bebd812 to 07691c0 Compare March 25, 2023 19:31
@nycholas nycholas merged commit 13315b9 into master Mar 25, 2023
@nycholas nycholas deleted the feature/388-unified-api-browser branch March 25, 2023 19:31
nycholas added a commit that referenced this pull request Jan 19, 2024
* Add support to Python 3.12 (#431)
* Drop support to Python 3.7
* Bump Flask version to >=3.0.0
* Bump JQuery version from 1.8.1 to 3.7.1 (fix security issue)
* Bump several dependencies versions
* Migrate configuration to pyproject.toml
* Reorganizze requirements files
* Remove flask_jsonrpc.__version__ attribute in favor to pyproject.toml version attribute
* Add multi Python version on update workflow (#332)
* Add new param to allow/disallow JSON-RPC Notification (#385)
* Unified API Browser when using modular server (#391)
* Add tests to all Python versions supported by the project (#395)
* Add e2e tests to Web Browsable API (#401)
* Goodbye Python 3.6 (#404)
* Add support to Python 3.11 (#408)
* Add rpc.describe RPC method: JSON Schema Service Descriptor (#412)
* Project links fixed (#429)
@nycholas nycholas mentioned this pull request Jan 19, 2024
nycholas added a commit that referenced this pull request Jan 19, 2024
* Add GitHub Action for coveralls

* Version 3.0.0

* Add support to Python 3.12 (#431)
* Drop support to Python 3.7
* Bump Flask version to >=3.0.0
* Bump JQuery version from 1.8.1 to 3.7.1 (fix security issue)
* Bump several dependencies versions
* Migrate configuration to pyproject.toml
* Reorganizze requirements files
* Remove flask_jsonrpc.__version__ attribute in favor to pyproject.toml version attribute
* Add multi Python version on update workflow (#332)
* Add new param to allow/disallow JSON-RPC Notification (#385)
* Unified API Browser when using modular server (#391)
* Add tests to all Python versions supported by the project (#395)
* Add e2e tests to Web Browsable API (#401)
* Goodbye Python 3.6 (#404)
* Add support to Python 3.11 (#408)
* Add rpc.describe RPC method: JSON Schema Service Descriptor (#412)
* Project links fixed (#429)
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.

Unified API Browser in case of using modular server
1 participant