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

Feature/add national id to person swagger #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions spec/requests/api/v1/people_details_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
home_traditional_authority: { type: :string },
occupation: { type: :string }
}
},
identifiers: {
type: :object,
properties: {
national_id: { type: :string }
}
}
},
required: %w[given_name family_name gender birthdate birthdate_estimated attributes home_district home_village
Expand Down Expand Up @@ -147,6 +153,7 @@
}
},
npid: { type: :string },
national_id: { type: :string },
doc_id: { type: :string }
},
required: %w[doc_id]
Expand Down
10 changes: 9 additions & 1 deletion swagger/v1/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ paths:
type: string
occupation:
type: string
identifiers:
type: object
properties:
national_id:
type: string
required:
- given_name
- family_name
Expand All @@ -131,6 +136,7 @@ paths:
- home_district
- home_village
- home_traditional_authority
- identifierrs
"/v1/search_by_name_and_gender":
post:
summary: search_by_name_and_gender people_detail
Expand Down Expand Up @@ -255,8 +261,10 @@ paths:
type: string
npid:
type: string
doc_id:
national_id:
type: string
doc_id:
type: string
required:
- doc_id
"/v1/void_person/":
Expand Down