Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

User-Defined API – Use Singletons and Subcollections

44 views32 minutes agoUser Definable API User Defined APIs
4
Felix Wesemeier [DevOps Catalyst]2.20K 17 hours ago 0 Comments

Hi community,

in order to follow best practises for RESTful API I would like to use Singletons

like /customers/{customerId} and potentially some subcollections / multiple level Sigletons like /customers/{customerId}/accounts/{accountId}

Is there any way to configure the User Defined API Routes to work like this?

REST API URI Naming Conventions and Best Practices

Gerwin van der Kamp [DevOps Enabler] Answered question 33 minutes ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Gerwin van der Kamp [DevOps Enabler]3.02K Posted 33 minutes ago 0 Comments

Create an dataminer api endpoint on /customers/

and use that script to determinate the path:

https://docs.dataminer.services/dataminer/Functions/User-Defined_APIs/Defining_an_API/UD_APIs_Examples.html#using-the-requestmethod-and-route

<code class="lang-csharp hljs language-csharp" data-highlighted="yes"><span class="hljs-function"><span class="hljs-keyword">public</span> ApiTriggerOutput <span class="hljs-title">OnApiTrigger</span>(<span class="hljs-params">IEngine engine, ApiTriggerInput requestData</span>)</span>
        {
            <span class="hljs-keyword">switch</span> (requestData.Route)
            {
                <span class="hljs-keyword">case</span> <span class="hljs-string">"chains/change-status"</span>:
                    <span class="hljs-keyword">return</span> HandleStateChangeRequest(requestData);

                <span class="hljs-keyword">case</span> <span class="hljs-string">"chains/status"</span>:
                    <span class="hljs-keyword">return</span> HandleStateRetrievalRequests(requestData);
            }</code>
Gerwin van der Kamp [DevOps Enabler] Edited answer 32 minutes ago
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin