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

Adding new semantic use case to the GET LIST API #1155

Open
19 tasks
agg3fe opened this issue Jan 22, 2025 · 1 comment
Open
19 tasks

Adding new semantic use case to the GET LIST API #1155

agg3fe opened this issue Jan 22, 2025 · 1 comment
Labels
Prep-R25.06 semantic hub Feature/Bug for Semantic Hub component

Comments

@agg3fe
Copy link

agg3fe commented Jan 22, 2025

Overview

The purpose of this ticket is to implement the API endpoints for the
use_case_model_mapping
. Needed is a GET endpoint to retrieve the existing mappings.

Explain the topic in 2 sentences

What's the benefit?

What are the Risks/Dependencies ?

Detailed explanation

Current implementation

Proposed improvements

Feature Team

Contributor

  • Contributor 1
  • Contributor 2

Committer

  • Committer 1
  • Committer 2

User Stories

  • Issue 1, linked to specific repository
  • Issue 2, linked to another specific repository

Acceptance Criteria

  • Criteria 1
  • Criteria 2
  • Criteria 3

Test Cases

Test Case 1

Steps

  1. Do something
  2. Click something
  3. Add something

Expected Result

  1. Expectation
  2. Expectation
  3. Expectation

Architectural Relevance

The following items are ensured (answer: yes) after this issue is implemented.

In the context of the standards 126 and 127, typically only one is applicable, depending on the specific use case. Please cross out one of the two standards that does not apply.

Justification: (Fill this out, if at least one of the checkboxes above cannot be ticked. Contact the Architecture Management Committee to get an approval for the justification)

Additional information

  • I am aware that my request may not be developed if no developer can be found for it. I'll try to contribute a developer (bring your own developer)
@agg3fe agg3fe added Prep-R25.06 semantic hub Feature/Bug for Semantic Hub component labels Jan 22, 2025
@agg3fe agg3fe moved this to Inbox in Release Planning Jan 22, 2025
@mittalVaghela
Copy link

Develop a mapping component with the following features:

1. GET Endpoint to Retrieve Mappings

Implement a GET endpoint that retrieves mapping information, returning a structured JSON response containing the following details:

Endpoint Details:

  • URL: /api/mappings

  • Method: GET

  • Response: JSON array of mapping objects, structured as follows:

              {
                "items": [
                  {
                    "urn": "urn:bamm:io.catenax.asset_tracker_links:1.0.0#AssetTrackerLinks",
                    "version": "1.0.0",
                    "name": "AssetTrackerLinks",
                    "type": "BAMM",
                    "status": "DRAFT",
                    "useCase": [
                      "Traceability",
                      "Asset and IoT Device (tracker)"
                    ]
                  },
                  ............
                ],
                "totalItems": 10,
                "currentPage": 0,
                "totalPages": 5,
                "itemCount": 10
              }

2. Requirements

  • Mapping Object Fields:

    Each mapping object must include:

     -  urn: string, the unique resource name.
      
      - useCase: array of strings, representing one or more use case names.
    
  • Functional Requirements:

      - The endpoint should support filtering by useCase.
    
      - If a user attempts to filter by a non-existent useCase, the response must return an error with the message: "UseCase_not_existing".
    

Current Implementation

Currently, there is no useCase type associated with any model. The existing implementation only returns semantic models without their corresponding use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Prep-R25.06 semantic hub Feature/Bug for Semantic Hub component
Projects
Status: Inbox
Development

No branches or pull requests

2 participants