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

API: GET Company Certificates (others) #464

Closed
Tracked by #326
jjeroch opened this issue Jan 30, 2024 · 0 comments
Closed
Tracked by #326

API: GET Company Certificates (others) #464

jjeroch opened this issue Jan 30, 2024 · 0 comments
Assignees
Labels
Sub-task A small piece of work that's part of a larger task.

Comments

@jjeroch
Copy link
Contributor

jjeroch commented Jan 30, 2024

Summary

Enable companies to fetch their company certificates with the respective document status

the implementation of this ticket depends on #471

 

Detail

Suggested API Endpoint: GET /api/administration/companydata/{businessPartnerNumber}/companyCertificates

 

Response Body

[
  {
    "companyCertificateType": "{company_certificate.company_certificate_type as label}",
    "companyCertificateStatus": "{company_certificate.status as label}",
    "documentId": "uuid",
    "validFrom": "{valid_from}",
    "validTill": "{valid_till}"
  }
]

 

 

Business Logic of the /companyCertificates endpoint
 

  • fetch all company certificate records from the table "company_certificates" of the related to the requested company/bpnl
  • if no records are found, response with an empty array
  • important: do not include certificates in status "IN_REVIEW" and "INACTIVE"

 

 

Validation:

  • Acting user must have the role „view_certificates“ assigned

 

Related Tickets


DB Changes to enable the feature: #471
FrontEnd-Implementation Ticket: CPLP-3641


Components: N/A
Sprints: PI 12 - S1 - CPLP
Fix Versions: N/A
StoryPoints: N/A
Attachments: CPLP-3679-image-2023-12-27-13-15-51-660.png, CPLP-3679-image-2023-12-27-13-37-47-123.png

@jjeroch jjeroch added Back-End Sub-task A small piece of work that's part of a larger task. labels Jan 30, 2024
@jjeroch jjeroch added this to the Version CX Release 24.03 milestone Jan 30, 2024
@jjeroch jjeroch changed the title API: GET Company Certificates (others) (ext: CPLP-3679) API: GET Company Certificates (others) Jan 30, 2024
@jjeroch jjeroch removed the Back-End label Jan 30, 2024
@jjeroch jjeroch added this to Portal Jan 30, 2024
@github-project-automation github-project-automation bot moved this to NEW USER REQUEST in Portal Jan 30, 2024
@jjeroch jjeroch moved this from NEW USER REQUEST to BACKLOG in Portal Jan 30, 2024
@AnuragNagpure AnuragNagpure moved this from BACKLOG to IN PROGRESS in Portal Feb 6, 2024
Phil91 added a commit to catenax-ng/tx-portal-backend that referenced this issue Feb 17, 2024
Phil91 added a commit to catenax-ng/tx-portal-backend that referenced this issue Feb 17, 2024
Phil91 added a commit that referenced this issue Feb 18, 2024
Refs: #464
Co-authored-by: Phil Schneider <[email protected]>
Reviewed-by: Phil Schneider <[email protected]>
@AnuragNagpure AnuragNagpure moved this from IN PROGRESS to IN REVIEW in Portal Feb 19, 2024
@jjeroch jjeroch moved this from IN REVIEW to USER READY in Portal Mar 31, 2024
@msinamci msinamci closed this as completed Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sub-task A small piece of work that's part of a larger task.
Projects
Archived in project
Development

No branches or pull requests

3 participants