ЕСОЗ - публічна документація

(GraphQL) Get LE Reorganization Job by id

Purpose

This WS allows to get detailed LE Reorganization Job info from Admin panel.

Key points

  1. This is a graphQl query used in Administration panel only

  2. Only authenticated and authorized NHS employee with appropriate scope can get LE Reorganization Job details.

  3. Query returns single LE Reorganization Job by job identifier.

 

Specification

Link

API paragraph not found

Resource

API paragraph not found

Scope

legal_entity_merge_job:read

Components

API paragraph not found

Microservices

API paragraph not found

Protocol type

API paragraph not found

Request type

API paragraph not found

Sync/Async

API paragraph not found

Public/Private/Internal

Private

 

"Reads a single `LegalEntityReorganizationJob` using its globally unique ID." legalEntityReorganizationJob(id: ID!): LegalEntityReorganizationJob

 

Logic

  1. Get LE reorganization job by id

  2. Render detailed LE reorganization job data according to schema

 

Request structure

API paragraph not found

 

Authorize

  • Verify the validity of access token

    • in case of error - return 401 (“Invalid access token”) in case of validation fails

  • Verify that token is not expired

    • in case of error - return 401 (“Invalid access token”)

  • Check user scopes in order to perform this action (scope = 'legal_entity_merge_job:read')

    • return 403 (“Your scope does not allow to access this resource. Missing allowances: legal_entity_merge_job:read”) in case of invalid scope(s)

 

Headers

API paragraph not found

 

Request data validation

Validate legal entity

  • Extract client_id from token.

  • Check client scopes in order to perform this action (scope = 'legal_entity_merge_job:read')

    • in case of error - return 403 (“Your scope does not allow to access this resource. Missing allowances: legal_entity_merge_job:read”)

  • Check legal entity status (status = ACTIVE)

    • In case of error - return 409 ('client_id refers to legal entity that is not active')

 

Processing

API paragraph not found

Response structure

API paragraph not found

Post-processing processes

API paragraph not found

HTTP status codes

API paragraph not found

 

 

ЕСОЗ - публічна документація