Skip to content

[explorer/rest] feat: Added namespace and namespace listing endpoints#2034

Open
AnthonyLaw wants to merge 7 commits intoexplorer/nem-backendfrom
explorer/rest-namespace
Open

[explorer/rest] feat: Added namespace and namespace listing endpoints#2034
AnthonyLaw wants to merge 7 commits intoexplorer/nem-backendfrom
explorer/rest-namespace

Conversation

@AnthonyLaw
Copy link
Copy Markdown
Member

Problem: Missing namespace and namespace listing endpoints in the rest service.
Solution:

  • Added /namespace/<name> endpoint for query root or sub namespace
  • Added /namespaces endpoint query namespace listing.

@AnthonyLaw AnthonyLaw requested a review from Wayonb March 24, 2026 05:13
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.93%. Comparing base (16edc37) to head (3fef9b5).
⚠️ Report is 23 commits behind head on explorer/nem-backend.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                    @@
##           explorer/nem-backend    #2034      +/-   ##
========================================================
+ Coverage                 96.91%   96.93%   +0.01%     
========================================================
  Files                       267      269       +2     
  Lines                     19360    19459      +99     
  Branches                    215      215              
========================================================
+ Hits                      18763    18862      +99     
  Misses                      591      591              
  Partials                      6        6              
Flag Coverage Δ
explorer-rest 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
explorer/rest/rest/__init__.py 100.00% <100.00%> (ø)
explorer/rest/rest/db/NemDatabase.py 100.00% <100.00%> (ø)
explorer/rest/rest/facade/NemRestFacade.py 100.00% <100.00%> (ø)
explorer/rest/rest/model/Namespace.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

cosignatories=[str(Address(address)) for address in cosignatories] if cosignatories else None
)

def _create_namespace_view(self, result): # pylint: disable=no-self-use
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

static method and remove no-self-use

{limit_condition}
'''

def _generate_namespace_query(self, where_condition='', order_condition='', limit_condition=''): # pylint: disable=no-self-use
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here...make a static method

@AnthonyLaw AnthonyLaw requested a review from Wayonb March 27, 2026 20:27
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.

2 participants