Skip to content

Commit

Permalink
Release v3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Jul 20, 2023
1 parent 10f4679 commit b70d447
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
@@ -1,4 +1,4 @@
**Inštalačná príručka popisuje komponent verzie [3.5.0](https://github.com/slovensko-digital/slovensko-sk-api/releases/tag/v3.5.0), uistite sa, že čítate príručku [verzie komponentu](https://github.com/slovensko-digital/slovensko-sk-api/releases), ktorý používate.**
**Inštalačná príručka popisuje komponent verzie [3.6.0](https://github.com/slovensko-digital/slovensko-sk-api/releases/tag/v3.6.0), uistite sa, že čítate príručku [verzie komponentu](https://github.com/slovensko-digital/slovensko-sk-api/releases), ktorý používate.**

# slovensko.sk API - Inštalačná príručka

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/health_controller.rb
Expand Up @@ -10,7 +10,7 @@ def index
status = :ok
health = {
description: 'slovensko.sk API',
version: '3.5.0',
version: '3.6.0',
status: 'pass',
checks: {
'environment:variables' => environment_variables,
Expand Down
4 changes: 3 additions & 1 deletion app/controllers/iam/identities_controller.rb
Expand Up @@ -11,6 +11,8 @@ class Iam::IdentitiesController < ApiController
rescue_from(sk.gov.schemas.identity.service._1_7.GetIdentityFault) { |error| render_bad_request(:invalid, :identity_id, upvs_fault(error)) }
rescue_from(sk.gov.schemas.identity.service._1_7.GetEdeskInfo2Fault) { |error| render_bad_request(:invalid, :query, upvs_fault(error)) }

CODE_LIST_ATTRIBUTES = [:id, :name]

def show
@identity = iam_repository(upvs_identity).identity(params[:id])
end
Expand All @@ -21,7 +23,7 @@ def search
:en, :email, :phone,
ids: [],
uris: [],
address: [:type, :country, :district, :municipality, :street, :building_number, :registration_number],
address: [:type, :street, :building_number, :registration_number, :municipality => CODE_LIST_ATTRIBUTES, :country => CODE_LIST_ATTRIBUTES, :district => CODE_LIST_ATTRIBUTES],
corporate_body: [:cin, :tin, :name],
natural_person: [:given_name, :family_name, :date_of_birth, :place_of_birth],
)
Expand Down
4 changes: 3 additions & 1 deletion public/openapi.yaml
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0

info:
title: slovensko.sk API
version: 3.5.0 (Komunitná verzia) 8.6.0 (Prémium verzia)
version: 3.6.0 (Komunitná verzia) 8.7.0 (Prémium verzia)

description: |
slovensko.sk API je proxy REST API komponent k službám www.slovensko.sk (Ústredný portál verejnej správy – ÚPVS), pomocou ktorých je možné:
Expand Down Expand Up @@ -2021,6 +2021,8 @@ paths:
registration_number:
description: Súpisné číslo budovy.
type: integer
required:
- type
legal_entity:
description: Právnická osoba.
type: object
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/health_spec.rb
Expand Up @@ -71,7 +71,7 @@ def expect_fail(checks)
expect(response.status).to eq(200)
expect(response.object.with_indifferent_access).to match(
description: 'slovensko.sk API',
version: '3.5.0',
version: '3.6.0',
status: 'pass',
checks: hash_including(*checks),
links: {
Expand Down

0 comments on commit b70d447

Please sign in to comment.