icgc-argo / icgc-argo/program-service

Create Data Center REST Endpoint

Open
#417 0 comments 0 reactions 1 assignee View on GitHub

@Azher2Ali is already working on this.

Since Aug 30, 2023.

new-feature
Dominant language
Java
Stars
3
Forks
0
Avg merge
14h 34m
Merged PRs (30d)
2

Description

This ticket is part of the effort to add functionality of a Data Center Registry to the Program Service:
The Program Service scope is being expanded to also act as a Data Center Registry. Data Centers represent the Regional Data Processing Centers (RDPC) that ARGO will support a network of. Each program registered in the program-service must belong to a single Data Center. The Data Centers have various connection details that also need to be stored.

Add REST Endpoint to create a new Data Center.

Detailed Description

Request

POST /datacenters

Inputs

This request takes a JSON object as the body of the request with all the properties of a Data Center entity, except for ID which is generated when created in the DB. Optional fields in the entity can be optional in this input.

Resposne

JSON object for the created Data Center entity (includes generated ID field).

Auth Rules

User must be a DCC Admin, identified by having WRITE permission for the Program Service system scope (ie. PROGRAMSERVICE.WRITE scope).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.