This WS is designed to allow NHS employee with assigned appropriate scopes to update information about global parameters.
Specification
Schema:
"""
Represents global parameters of eHealth.
User must have a scope **global_parameters:read**
"""
type GlobalParameters {
"Age of an adult"
adultAge: Int!
"Calculation date"
billingDate: Int!
"Number of days of validity of a request for a declaration"
declarationRequestExpiration: Int!
"The number of days the employee request has expired"
employeeRequestExpiration: Int!
"Verification request expiration"
verificationRequestExpiration: Int!
"Term of verification request"
verificationRequestTerm: Int!
"Maximum number of declarations"
declarationLimit: Int!
"Term of declaration (years)"
declarationTerm: Int!
"Maximum amount of a persons who can use the same phone number"
phoneNumberAuthLimit: Int!
"Medication dispense period"
medicationDispensePeriod: Int!
"Power BI URL"
biUrl: String!
}
"""
Input for `UpdateGlobalParameters` mutation.
User must have a scope **global_parameters:write**
"""
input UpdateGlobalParametersInput {
"Age of an adult"
adultAge: Int
"Calculation date"
billingDate: Int
"Number of days of validity of a request for a declaration"
declarationRequestExpiration: Int
"The number of days the employee request has expired"
employeeRequestExpiration: Int
"Verification request expiration"
verificationRequestExpiration: Int
"Term of verification request"
verificationRequestTerm: Int
"Maximum number of declarations"
declarationLimit: Int
"Term of declaration (years)"
declarationTerm: Int
"Maximum amount of a persons who can use the same phone number"
phoneNumberAuthLimit: Int
"Medication dispense period"
medicationDispensePeriod: Int
"BI URL"
biUrl: String
}
"""
Return type for `UpdateGlobalParameters` mutation.
"""
type UpdateGlobalParametersPayload {
"Update `GlobalParameters`."
globalParameters: GlobalParameters
}
Link
-
Посилання на Apiary або Swagger
Resource
/graphql
Посилання на ресурс, наприклад: /api/persons/create
Scope
global_parameters:write
Scope для доступу
Components
GlobalParameters
Зазначається перелік бізнес компонентів, які використовують цей метод, наприклад: ePrescription
Microservices
fe/admin-web
Перелік мікросервісів, які використовує метод API, наприклад: Auth, ABAC
Protocol type
GraphQL
Тип протоколу, який використовується запитом, наприклад: SOAP | REST
Request type
POST
Тип запиту API, наприклад: GET, POST, PATCH…
Sync/Async
API paragraph not found
Метод є синхронним чи асинхронним?
Public/Private/Internal
Private
Потрібно зазначити тип методу за ступенем доступності
Logic
This WS is designed for NHS employees. This query is use to update existing global parameters.