familysearch 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/familysearch.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_dependency("faraday_middleware", ["~> 0.9.0"])
|
22
22
|
s.add_dependency("multi_json", ["~> 1.5.0"])
|
23
23
|
s.add_dependency("addressable", ["~> 2.3.3"])
|
24
|
-
s.add_dependency("familysearch-gedcomx", ["~> 1.0.
|
24
|
+
s.add_dependency("familysearch-gedcomx", ["~> 1.0.1"])
|
25
25
|
s.add_development_dependency("rspec", ["~> 2.13.0"])
|
26
26
|
s.add_development_dependency("shoulda", ["~> 3.3.2"])
|
27
27
|
s.add_development_dependency("bundler", [">= 1.2.3"])
|
data/lib/familysearch/client.rb
CHANGED
@@ -82,7 +82,7 @@ module FamilySearch
|
|
82
82
|
faraday.response :gedcomx_parser
|
83
83
|
faraday.response :multi_json
|
84
84
|
faraday.response :follow_redirects, :limit => 3, :standards_compliant => true
|
85
|
-
faraday.headers['Accept'] = 'application/x-fs-v1+json'
|
85
|
+
faraday.headers['Accept'] = 'application/x-fs-v1+json,application/x-gedcomx-atom+json,application/json'
|
86
86
|
faraday.authorization('Bearer',@access_token) if @access_token
|
87
87
|
faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
|
88
88
|
end
|
@@ -4,9 +4,21 @@ module FamilySearch
|
|
4
4
|
module Middleware
|
5
5
|
# Parse
|
6
6
|
class GedcomxParser < Faraday::Response::Middleware
|
7
|
+
def on_complete(env)
|
8
|
+
content_type = env[:response_headers]['content-type']
|
9
|
+
if ['application/x-gedcomx-atom+json','application/x-fs-v1+json'].include? content_type
|
10
|
+
env[:body] = parse(env[:body], content_type) unless [204,304].index env[:status]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
7
14
|
# The method that has MultiJson parse the json string.
|
8
|
-
def parse(body)
|
9
|
-
|
15
|
+
def parse(body, content_type)
|
16
|
+
case content_type
|
17
|
+
when 'application/x-gedcomx-atom+json'
|
18
|
+
FamilySearch::Gedcomx::AtomFeed.new body
|
19
|
+
when 'application/x-fs-v1+json'
|
20
|
+
FamilySearch::Gedcomx::FamilySearch.new body
|
21
|
+
end
|
10
22
|
end
|
11
23
|
end
|
12
24
|
end
|
data/lib/familysearch/version.rb
CHANGED
data/spec/client_spec.rb
CHANGED
@@ -148,9 +148,9 @@ describe FamilySearch::Client do
|
|
148
148
|
end
|
149
149
|
|
150
150
|
describe "get" do
|
151
|
-
def client()
|
152
|
-
unless @client
|
153
|
-
@client = FamilySearch::Client.new(:key => 'WCQY-7J1Q-GKVV-7DNM-SQ5M-9Q5H-JX3H-CMJK'
|
151
|
+
def client(refresh=false)
|
152
|
+
unless @client || refresh
|
153
|
+
@client = FamilySearch::Client.new(:key => 'WCQY-7J1Q-GKVV-7DNM-SQ5M-9Q5H-JX3H-CMJK')
|
154
154
|
@client.discover!
|
155
155
|
@client.basic_auth! 'api-user-1241', '1782'
|
156
156
|
end
|
@@ -175,6 +175,21 @@ describe FamilySearch::Client do
|
|
175
175
|
person = client.get 'https://sandbox.familysearch.org/platform/tree/persons-with-relationships?person=KWQX-52J'
|
176
176
|
end
|
177
177
|
end
|
178
|
+
|
179
|
+
it "should return a FamilySearch::Gedcomx::Familysearch object response is of that mediatype" do
|
180
|
+
VCR.use_cassette('person_with_relationship') do
|
181
|
+
person_response = client.get 'https://sandbox.familysearch.org/platform/tree/persons-with-relationships?person=KWQX-52J'
|
182
|
+
person_response.body.should be_instance_of FamilySearch::Gedcomx::FamilySearch
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
it "should return an AtomFeed object if it is of type application/x-gedcomx-atom+json" do
|
187
|
+
VCR.use_cassette('search') do
|
188
|
+
# application/x-fs-v1+json
|
189
|
+
person_response = client.get 'https://sandbox.familysearch.org/platform/tree/search?q=givenName:John surname:Smith gender:male'
|
190
|
+
person_response.body.should be_instance_of FamilySearch::Gedcomx::AtomFeed
|
191
|
+
end
|
192
|
+
end
|
178
193
|
end
|
179
194
|
|
180
195
|
describe "template" do
|
@@ -0,0 +1,569 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.familysearch.org/.well-known/app-meta
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/x-fs-v1+json,application/x-gedcomx-atom+json,application/json
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.7
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Apache-Coyote/1.1
|
23
|
+
Set-Cookie:
|
24
|
+
- JSESSIONID=6DB70F20D8D0ACF2559C3BD744B77F16; Path=/.well-known
|
25
|
+
Content-Location:
|
26
|
+
- /.well-known/app-meta
|
27
|
+
Cache-Control:
|
28
|
+
- no-transform, max-age=604800
|
29
|
+
X-Processing-Time:
|
30
|
+
- '197'
|
31
|
+
Content-Type:
|
32
|
+
- application/x-fs-v1+json
|
33
|
+
Transfer-Encoding:
|
34
|
+
- chunked
|
35
|
+
Date:
|
36
|
+
- Wed, 29 May 2013 13:18:02 GMT
|
37
|
+
Connection:
|
38
|
+
- close
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ! "{\n \"links\" : {\n \"person-change-summary-template\" : {\n
|
42
|
+
\ \"template\" : \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/change-summary{?access_token}\",\n
|
43
|
+
\ \"type\" : \"application/atom+xml,application/json,application/x-gedcomx-atom+json,application/xml,text/html\",\n
|
44
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
45
|
+
\"Person Change Summary\"\n },\n \"person-notes-template\" : {\n \"template\"
|
46
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/notes{?access_token}\",\n
|
47
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
48
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
49
|
+
\ \"allow\" : \"GET,POST\",\n \"title\" : \"Notes\"\n },\n \"couple-relationship-note-template\"
|
50
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/couple-relationships/{crid}/notes/{nid}{?access_token}\",\n
|
51
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
52
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
53
|
+
\ \"allow\" : \"GET,POST,DELETE\",\n \"title\" : \"Note\"\n },\n
|
54
|
+
\ \"person-restore-template\" : {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/restore{?access_token}\",\n
|
55
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
56
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
57
|
+
\ \"allow\" : \"POST\",\n \"title\" : \"Restore\"\n },\n \"couple-relationship-source-reference-template\"
|
58
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/couple-relationships/{crid}/source-references/{srid}{?access_token}\",\n
|
59
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
60
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
61
|
+
\ \"allow\" : \"DELETE\",\n \"title\" : \"Source Reference\"\n },\n
|
62
|
+
\ \"source-description-template\" : {\n \"template\" : \"https://sandbox.familysearch.org/platform/sources/descriptions/{sdid}{?access_token}\",\n
|
63
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
64
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
65
|
+
\ \"allow\" : \"HEAD,GET,POST,DELETE\",\n \"title\" : \"Source Description\"\n
|
66
|
+
\ },\n \"child-and-parents-relationship-template\" : {\n \"template\"
|
67
|
+
: \"https://sandbox.familysearch.org/platform/tree/child-and-parents-relationships/{caprid}{?access_token}\",\n
|
68
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
69
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
70
|
+
\ \"allow\" : \"HEAD,GET,POST,DELETE\",\n \"title\" : \"Child-and-Parents
|
71
|
+
Relationship\"\n },\n \"discussions\" : {\n \"href\" : \"https://sandbox.familysearch.org/platform/discussions/discussions\",\n
|
72
|
+
\ \"title\" : \"Discussions\"\n },\n \"child-and-parents-relationship-conclusion-template\"
|
73
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/child-and-parents-relationships/{caprid}/{role}/conclusions/{cid}{?access_token}\",\n
|
74
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
75
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
76
|
+
\ \"allow\" : \"DELETE\",\n \"title\" : \"FamilySearch Conclusion\"\n
|
77
|
+
\ },\n \"couple-relationship-conclusion-template\" : {\n \"template\"
|
78
|
+
: \"https://sandbox.familysearch.org/platform/tree/couple-relationships/{crid}/conclusions/{cid}{?access_token}\",\n
|
79
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
80
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
81
|
+
\ \"allow\" : \"DELETE\",\n \"title\" : \"Conclusion\"\n },\n
|
82
|
+
\ \"spouse-relationships-template\" : {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/spouse-relationships{?access_token}\",\n
|
83
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
84
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
85
|
+
\ \"allow\" : \"GET\",\n \"title\" : \"Person Relationships\"\n },\n
|
86
|
+
\ \"person-discussion-references-template\" : {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/discussion-references{?access_token}\",\n
|
87
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
88
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
89
|
+
\ \"allow\" : \"GET,POST\",\n \"title\" : \"Discussion References\"\n
|
90
|
+
\ },\n \"ancestry-query\" : {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/ancestry{?access_token,generations,person,spouse}\",\n
|
91
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
92
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
93
|
+
\"Ancestry\"\n },\n \"user-collections\" : {\n \"href\" : \"https://sandbox.familysearch.org/platform/sources/collections\",\n
|
94
|
+
\ \"title\" : \"User-Defined Collections\"\n },\n \"current-user\"
|
95
|
+
: {\n \"href\" : \"https://sandbox.familysearch.org/platform/users/current\",\n
|
96
|
+
\ \"title\" : \"Current User\"\n },\n \"discussion-template\" :
|
97
|
+
{\n \"template\" : \"https://sandbox.familysearch.org/platform/discussions/discussions/{did}{?access_token}\",\n
|
98
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
99
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
100
|
+
\ \"allow\" : \"HEAD,GET,POST,DELETE\",\n \"title\" : \"Discussion\"\n
|
101
|
+
\ },\n \"discussion-comments-template\" : {\n \"template\" : \"https://sandbox.familysearch.org/platform/discussions/discussions/{did}/comments{?access_token}\",\n
|
102
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
103
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
104
|
+
\ \"allow\" : \"GET,POST\",\n \"title\" : \"Comments\"\n },\n
|
105
|
+
\ \"person-source-reference-template\" : {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/source-references/{srid}{?access_token}\",\n
|
106
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
107
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
108
|
+
\ \"allow\" : \"DELETE\",\n \"title\" : \"Source Reference\"\n },\n
|
109
|
+
\ \"couple-relationship-source-references-template\" : {\n \"template\"
|
110
|
+
: \"https://sandbox.familysearch.org/platform/tree/couple-relationships/{crid}/source-references{?access_token}\",\n
|
111
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
112
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
113
|
+
\ \"allow\" : \"GET,POST\",\n \"title\" : \"Source References\"\n
|
114
|
+
\ },\n \"child-and-parents-relationship-source-references-template\"
|
115
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/child-and-parents-relationships/{caprid}/source-references{?access_token}\",\n
|
116
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
117
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
118
|
+
\ \"allow\" : \"GET,POST\",\n \"title\" : \"Child-and-Parents Source
|
119
|
+
References\"\n },\n \"person-matches-template\" : {\n \"template\"
|
120
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/matches{?access_token}\",\n
|
121
|
+
\ \"type\" : \"application/atom+xml,application/json,application/x-gedcomx-atom+json,application/xml,text/html\",\n
|
122
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
123
|
+
\"Person Matches\"\n },\n \"parent-relationships-template\" : {\n \"template\"
|
124
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/parent-relationships{?access_token}\",\n
|
125
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
126
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
127
|
+
\"Person Relationships\"\n },\n \"person-matches-query\" : {\n \"template\"
|
128
|
+
: \"https://sandbox.familysearch.org/platform/tree/matches{?access_token,count,q}\",\n
|
129
|
+
\ \"type\" : \"application/atom+xml,application/json,application/x-gedcomx-atom+json,application/xml,text/html\",\n
|
130
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
131
|
+
\"Person Matches Query\"\n },\n \"child-and-parents-relationships\"
|
132
|
+
: {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/child-and-parents-relationships\",\n
|
133
|
+
\ \"title\" : \"Child-and-Parents Relationships\"\n },\n \"person-template\"
|
134
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/persons/{pid}{?access_token}\",\n
|
135
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
136
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
137
|
+
\ \"allow\" : \"HEAD,GET,POST,DELETE,GET,POST\",\n \"title\" : \"Person\"\n
|
138
|
+
\ },\n \"user-collections-source-descriptions-for-user-template\" : {\n
|
139
|
+
\ \"template\" : \"https://sandbox.familysearch.org/platform/sources/{uid}/collections/descriptions{?access_token,count,start}\",\n
|
140
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
141
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
142
|
+
\ \"allow\" : \"GET,DELETE\",\n \"title\" : \"User-Defined Collections
|
143
|
+
Source Descriptions for a User\"\n },\n \"authorities\" : {\n \"href\"
|
144
|
+
: \"https://sandbox.familysearch.org/authorities\"\n },\n \"reservation\"
|
145
|
+
: {\n \"href\" : \"https://sandbox.familysearch.org/reservation\"\n },\n
|
146
|
+
\ \"person-changes-template\" : {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/changes{?access_token}\",\n
|
147
|
+
\ \"type\" : \"application/atom+xml,application/json,application/x-gedcomx-atom+json,application/xml,text/html\",\n
|
148
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
149
|
+
\"Change History\"\n },\n \"user-collection-template\" : {\n \"template\"
|
150
|
+
: \"https://sandbox.familysearch.org/platform/sources/collections/{udcid}{?access_token}\",\n
|
151
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
152
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
153
|
+
\ \"allow\" : \"GET,POST,DELETE\",\n \"title\" : \"User-Defined Collection\"\n
|
154
|
+
\ },\n \"fs-identity-v2-login\" : {\n \"href\" : \"https://sandbox.familysearch.org/identity/v2/login\"\n
|
155
|
+
\ },\n \"preferred-spouse-relationship-template\" : {\n \"template\"
|
156
|
+
: \"https://sandbox.familysearch.org/platform/tree/users/{uid}/preferred-spouse-relationships/{pid}{?access_token}\",\n
|
157
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
158
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
159
|
+
\ \"allow\" : \"HEAD,GET,DELETE,PUT\",\n \"title\" : \"Preferred
|
160
|
+
Relationship\"\n },\n \"descendancy-query\" : {\n \"template\"
|
161
|
+
: \"https://sandbox.familysearch.org/platform/tree/descendancy{?access_token,person,spouse}\",\n
|
162
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
163
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
164
|
+
\"Descendancy\"\n },\n \"couple-relationship-notes-template\" : {\n
|
165
|
+
\ \"template\" : \"https://sandbox.familysearch.org/platform/tree/couple-relationships/{crid}/notes{?access_token}\",\n
|
166
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
167
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
168
|
+
\ \"allow\" : \"GET,POST\",\n \"title\" : \"Notes\"\n },\n \"child-and-parents-relationship-restore-template\"
|
169
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/child-and-parents-relationships/{caprid}/restore{?access_token}\",\n
|
170
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
171
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
172
|
+
\ \"allow\" : \"POST\",\n \"title\" : \"Restore\"\n },\n \"fs-parent-relationships-template\"
|
173
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/fs-parent-relationships{?access_token}\",\n
|
174
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
175
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
176
|
+
\"FamilySearch Person Relationships\"\n },\n \"http://oauth.net/core/2.0/endpoint/token\"
|
177
|
+
: {\n \"href\" : \"https://sandbox.familysearch.org/cis-web/oauth2/v3/token\"\n
|
178
|
+
\ },\n \"http://oauth.net/core/2.0/endpoint/authorize\" : {\n \"href\"
|
179
|
+
: \"https://sandbox.familysearch.org/cis-web/oauth2/v3/authorization\"\n },\n
|
180
|
+
\ \"person-merge-template\" : {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/merges/{dpid}{?access_token,filter}\",\n
|
181
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
182
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
183
|
+
\ \"allow\" : \"OPTIONS,GET,POST\",\n \"title\" : \"Person Merge\"\n
|
184
|
+
\ },\n \"person-source-references-template\" : {\n \"template\"
|
185
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/source-references{?access_token}\",\n
|
186
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
187
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
188
|
+
\ \"allow\" : \"GET,POST\",\n \"title\" : \"Source References\"\n
|
189
|
+
\ },\n \"discussion-comment-template\" : {\n \"template\" : \"https://sandbox.familysearch.org/platform/discussions/discussions/{did}/comments/{cmid}{?access_token}\",\n
|
190
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
191
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
192
|
+
\ \"allow\" : \"DELETE\",\n \"title\" : \"Comment\"\n },\n \"person-with-relationships-query\"
|
193
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/persons-with-relationships{?access_token,person}\",\n
|
194
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
195
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
196
|
+
\"Person With Relationships\"\n },\n \"child-and-parents-relationship-note-template\"
|
197
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/child-and-parents-relationships/{caprid}/notes/{nid}{?access_token}\",\n
|
198
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
199
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
200
|
+
\ \"allow\" : \"GET,POST,DELETE\",\n \"title\" : \"Note\"\n },\n
|
201
|
+
\ \"change-restore-template\" : {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/changes/{chid}/restore{?access_token}\",\n
|
202
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
203
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
204
|
+
\ \"allow\" : \"POST\",\n \"title\" : \"Restore\"\n },\n \"preferred-parent-relationship-template\"
|
205
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/users/{uid}/preferred-parent-relationships/{pid}{?access_token}\",\n
|
206
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
207
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
208
|
+
\ \"allow\" : \"HEAD,GET,DELETE,PUT\",\n \"title\" : \"Preferred
|
209
|
+
Relationship\"\n },\n \"person-note-template\" : {\n \"template\"
|
210
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/notes/{nid}{?access_token}\",\n
|
211
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
212
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
213
|
+
\ \"allow\" : \"GET,POST,DELETE\",\n \"title\" : \"Note\"\n },\n
|
214
|
+
\ \"child-and-parents-relationship-changes-template\" : {\n \"template\"
|
215
|
+
: \"https://sandbox.familysearch.org/platform/tree/child-and-parents-relationships/{caprid}/changes{?access_token}\",\n
|
216
|
+
\ \"type\" : \"application/atom+xml,application/json,application/x-gedcomx-atom+json,application/xml,text/html\",\n
|
217
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
218
|
+
\"Change History\"\n },\n \"child-and-parents-relationship-notes-template\"
|
219
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/child-and-parents-relationships/{caprid}/notes{?access_token}\",\n
|
220
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
221
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
222
|
+
\ \"allow\" : \"GET,POST\",\n \"title\" : \"Child-and-Parents Notes\"\n
|
223
|
+
\ },\n \"registration\" : {\n \"href\" : \"https://sandbox.familysearch.org/cis-web/pages/registration/registration.html\"\n
|
224
|
+
\ },\n \"persons\" : {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/persons\",\n
|
225
|
+
\ \"title\" : \"Persons\"\n },\n \"person-search\" : {\n \"template\"
|
226
|
+
: \"https://sandbox.familysearch.org/platform/tree/search{?access_token,context,count,q,start}\",\n
|
227
|
+
\ \"type\" : \"application/atom+xml,application/json,application/x-gedcomx-atom+json,application/xml,text/html\",\n
|
228
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
229
|
+
\"Person Search\"\n },\n \"fs-identity-v2-permission\" : {\n \"href\"
|
230
|
+
: \"https://sandbox.familysearch.org/identity/v2/permission\"\n },\n \"couple-relationship-restore-template\"
|
231
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/couple-relationships/{crid}/restore{?access_token}\",\n
|
232
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
233
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
234
|
+
\ \"allow\" : \"POST\",\n \"title\" : \"Restore\"\n },\n \"child-relationships-template\"
|
235
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/child-relationships{?access_token}\",\n
|
236
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
237
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
238
|
+
\"Person Relationships\"\n },\n \"couple-relationship-changes-template\"
|
239
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/couple-relationships/{crid}/changes{?access_token}\",\n
|
240
|
+
\ \"type\" : \"application/atom+xml,application/json,application/x-gedcomx-atom+json,application/xml,text/html\",\n
|
241
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
242
|
+
\"Change History\"\n },\n \"agent-template\" : {\n \"template\"
|
243
|
+
: \"https://sandbox.familysearch.org/platform/users/agents/{uid}{?access_token}\",\n
|
244
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
245
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
246
|
+
\"Agent\"\n },\n \"child-and-parents-relationship-parent-template\"
|
247
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/child-and-parents-relationships/{caprid}/{role}{?access_token}\",\n
|
248
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
249
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
250
|
+
\ \"allow\" : \"DELETE\",\n \"title\" : \"Parent Relationship Role\"\n
|
251
|
+
\ },\n \"fs-identity-v2-logout\" : {\n \"href\" : \"https://sandbox.familysearch.org/identity/v2/logout\"\n
|
252
|
+
\ },\n \"fs-child-relationships-template\" : {\n \"template\" :
|
253
|
+
\"https://sandbox.familysearch.org/platform/tree/persons/{pid}/fs-child-relationships{?access_token}\",\n
|
254
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
255
|
+
\ \"accept\" : \"*/*\",\n \"allow\" : \"GET\",\n \"title\" :
|
256
|
+
\"FamilySearch Person Relationships\"\n },\n \"parent-child-relationship-template\"
|
257
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/parent-child-relationships/{caprid}{?access_token}\",\n
|
258
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
259
|
+
\ \"accept\" : \"application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
260
|
+
\ \"allow\" : \"HEAD,GET,POST,DELETE,GET,POST\",\n \"title\" : \"Relationship\"\n
|
261
|
+
\ },\n \"person-discussion-reference-template\" : {\n \"template\"
|
262
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/discussion-references/{drid}{?access_token}\",\n
|
263
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
264
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
265
|
+
\ \"allow\" : \"DELETE\",\n \"title\" : \"Discussion Reference\"\n
|
266
|
+
\ },\n \"person-conclusion-template\" : {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/persons/{pid}/conclusions/{cid}{?access_token}\",\n
|
267
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
268
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
269
|
+
\ \"allow\" : \"DELETE\",\n \"title\" : \"Conclusion\"\n },\n
|
270
|
+
\ \"child-and-parents-relationship-source-reference-template\" : {\n \"template\"
|
271
|
+
: \"https://sandbox.familysearch.org/platform/tree/child-and-parents-relationships/{caprid}/source-references/{srid}{?access_token}\",\n
|
272
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/xml,text/html\",\n
|
273
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml\",\n
|
274
|
+
\ \"allow\" : \"DELETE\",\n \"title\" : \"Child-and-Parents Source
|
275
|
+
Reference\"\n },\n \"couple-relationships\" : {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/couple-relationships\",\n
|
276
|
+
\ \"title\" : \"Relationships\"\n },\n \"user-collections-for-user-template\"
|
277
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/sources/{uid}/collections{?access_token}\",\n
|
278
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
279
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
280
|
+
\ \"allow\" : \"GET\",\n \"title\" : \"User-Defined Collections for
|
281
|
+
a User\"\n },\n \"source-descriptions\" : {\n \"href\" : \"https://sandbox.familysearch.org/platform/sources/descriptions\",\n
|
282
|
+
\ \"title\" : \"Source Descriptions\"\n },\n \"user-collection-source-descriptions-template\"
|
283
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/sources/collections/{udcid}/descriptions{?access_token,count,start}\",\n
|
284
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
285
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
286
|
+
\ \"allow\" : \"GET,POST\",\n \"title\" : \"User-Defined Collection
|
287
|
+
Source Descriptions\"\n },\n \"current-user-person\" : {\n \"href\"
|
288
|
+
: \"https://sandbox.familysearch.org/platform/tree/current-person\",\n \"title\"
|
289
|
+
: \"Current User Person\"\n },\n \"fs-identity-v2-session\" : {\n \"href\"
|
290
|
+
: \"https://sandbox.familysearch.org/identity/v2/session\"\n },\n \"couple-relationship-template\"
|
291
|
+
: {\n \"template\" : \"https://sandbox.familysearch.org/platform/tree/couple-relationships/{crid}{?access_token}\",\n
|
292
|
+
\ \"type\" : \"application/json,application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml,application/xml,text/html\",\n
|
293
|
+
\ \"accept\" : \"application/x-fs-v1+json,application/x-fs-v1+xml,application/x-gedcomx-v1+json,application/x-gedcomx-v1+xml\",\n
|
294
|
+
\ \"allow\" : \"HEAD,GET,POST,DELETE,GET,POST\",\n \"title\" : \"Relationship\"\n
|
295
|
+
\ }\n }\n}"
|
296
|
+
http_version:
|
297
|
+
recorded_at: Wed, 29 May 2013 13:18:13 GMT
|
298
|
+
- request:
|
299
|
+
method: get
|
300
|
+
uri: https://api-user-1241:1782@sandbox.familysearch.org/identity/v2/login?dataFormat=application/json&key=WCQY-7J1Q-GKVV-7DNM-SQ5M-9Q5H-JX3H-CMJK
|
301
|
+
body:
|
302
|
+
encoding: US-ASCII
|
303
|
+
string: ''
|
304
|
+
headers:
|
305
|
+
Accept:
|
306
|
+
- application/x-fs-v1+json,application/x-gedcomx-atom+json,application/json
|
307
|
+
User-Agent:
|
308
|
+
- Faraday v0.8.7
|
309
|
+
Accept-Encoding:
|
310
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
311
|
+
response:
|
312
|
+
status:
|
313
|
+
code: 200
|
314
|
+
message: !binary |-
|
315
|
+
T0s=
|
316
|
+
headers:
|
317
|
+
!binary "U2VydmVy":
|
318
|
+
- !binary |-
|
319
|
+
QXBhY2hlLUNveW90ZS8xLjE=
|
320
|
+
!binary "QXBwLVN2ci1JZA==":
|
321
|
+
- !binary |-
|
322
|
+
MTAwLi0yOQ==
|
323
|
+
!binary "UHJhZ21h":
|
324
|
+
- !binary |-
|
325
|
+
bm8tY2FjaGU=
|
326
|
+
!binary "RXhwaXJlcw==":
|
327
|
+
- !binary |-
|
328
|
+
VGh1LCAwMSBKYW4gMTk3MCAwMDowMDowMCBHTVQ=
|
329
|
+
!binary "Q2FjaGUtQ29udHJvbA==":
|
330
|
+
- !binary |-
|
331
|
+
bm8tY2FjaGU=
|
332
|
+
- !binary |-
|
333
|
+
bm8tc3RvcmU=
|
334
|
+
!binary "U2V0LUNvb2tpZQ==":
|
335
|
+
- !binary |-
|
336
|
+
ZnNzZXNzaW9uaWQ9VVNZU0Y3MzhCMjk2Q0QyQTJDQTc4RUYzQTJEODg2ODVF
|
337
|
+
NTlGX25hY2ktMDQ1LTAzMy5kLnVzeXMuZnNnbG9iYWwubmV0OyBQYXRoPS8=
|
338
|
+
!binary "WC1Qcm9jZXNzaW5nLVRpbWU=":
|
339
|
+
- !binary |-
|
340
|
+
NzMw
|
341
|
+
!binary "Q29udGVudC1FbmNvZGluZw==":
|
342
|
+
- !binary |-
|
343
|
+
Z3ppcA==
|
344
|
+
!binary "Q29udGVudC1UeXBl":
|
345
|
+
- !binary |-
|
346
|
+
YXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04
|
347
|
+
!binary "Q29udGVudC1MYW5ndWFnZQ==":
|
348
|
+
- !binary |-
|
349
|
+
ZW4tVVM=
|
350
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
351
|
+
- !binary |-
|
352
|
+
MTkw
|
353
|
+
!binary "RGF0ZQ==":
|
354
|
+
- !binary |-
|
355
|
+
V2VkLCAyOSBNYXkgMjAxMyAxMzoxODowMyBHTVQ=
|
356
|
+
!binary "Q29ubmVjdGlvbg==":
|
357
|
+
- !binary |-
|
358
|
+
Y2xvc2U=
|
359
|
+
body:
|
360
|
+
encoding: ASCII-8BIT
|
361
|
+
string: !binary |-
|
362
|
+
H4sIAAAAAAAAADWNywqDMBBF/yVrDTHxEd1ZH5tSupAuuippnVpBojixIOK/
|
363
|
+
N2hdzuGeOQtBo8yEWV8DSThjzh9cAFE1lpHrmRyQJHrqOofUMIzwUgbqg3xh
|
364
|
+
xLbXds5pRDnzBPO9kHKPhdZWk/mANq1VttHuoE1s50Ja+4jcqntVRkKeeBxm
|
365
|
+
OU95lkayKEXKcylDGRRBXD60erUu8wOXCUFrOuGM9I1N1z9VRzUYWzPzAHtj
|
366
|
+
XX+XPnz14AAAAA==
|
367
|
+
http_version:
|
368
|
+
recorded_at: Wed, 29 May 2013 13:18:14 GMT
|
369
|
+
- request:
|
370
|
+
method: get
|
371
|
+
uri: https://sandbox.familysearch.org/platform/tree/search?q=givenName:John%20surname:Smith%20gender:male
|
372
|
+
body:
|
373
|
+
encoding: US-ASCII
|
374
|
+
string: ''
|
375
|
+
headers:
|
376
|
+
Accept:
|
377
|
+
- application/x-fs-v1+json,application/x-gedcomx-atom+json,application/json
|
378
|
+
User-Agent:
|
379
|
+
- Faraday v0.8.7
|
380
|
+
Authorization:
|
381
|
+
- Bearer USYSF738B296CD2A2CA78EF3A2D88685E59F_naci-045-033.d.usys.fsglobal.net
|
382
|
+
Accept-Encoding:
|
383
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
384
|
+
response:
|
385
|
+
status:
|
386
|
+
code: 200
|
387
|
+
message: OK
|
388
|
+
headers:
|
389
|
+
Server:
|
390
|
+
- Apache-Coyote/1.1
|
391
|
+
X-Fs-Page-Context:
|
392
|
+
- AQATNTk5NDY4MzUzOTQ4Njk1NzQzMAAAAAZTMWTrAABfdgA=
|
393
|
+
Cache-Control:
|
394
|
+
- no-cache, no-store, no-transform, must-revalidate, max-age=0
|
395
|
+
X-Processing-Time:
|
396
|
+
- '100'
|
397
|
+
Content-Type:
|
398
|
+
- application/x-gedcomx-atom+json
|
399
|
+
Transfer-Encoding:
|
400
|
+
- chunked
|
401
|
+
Date:
|
402
|
+
- Wed, 29 May 2013 13:18:03 GMT
|
403
|
+
Connection:
|
404
|
+
- close
|
405
|
+
body:
|
406
|
+
encoding: US-ASCII
|
407
|
+
string: ! "{\n \"results\" : 4,\n \"index\" : 0,\n \"links\" : {\n \"next\"
|
408
|
+
: {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/search?context=AQATNTk5NDY4MzUzOTQ4Njk1NzQzMAAAAAZTMWTrAABfdgA%3D&start=4\",\n
|
409
|
+
\ \"title\" : \"Person Search\"\n },\n \"self\" : {\n \"href\"
|
410
|
+
: \"https://sandbox.familysearch.org/platform/tree/search?q=givenName:John+surname:Smith+gender:male\",\n
|
411
|
+
\ \"title\" : \"Person Search\"\n },\n \"first\" : {\n \"href\"
|
412
|
+
: \"https://sandbox.familysearch.org/platform/tree/search?context=AQATNTk5NDY4MzUzOTQ4Njk1NzQzMAAAAAZTMWTrAABfdgA%3D&start=0\",\n
|
413
|
+
\ \"title\" : \"Person Search\"\n }\n },\n \"subtitle\" : \"Results
|
414
|
+
of searching for persons.\",\n \"title\" : \"Results\",\n \"entries\" :
|
415
|
+
[ {\n \"content\" : {\n \"gedcomx\" : {\n \"persons\" : [ {\n
|
416
|
+
\ \"id\" : \"KW7M-6SD\",\n \"links\" : {\n \"person\"
|
417
|
+
: {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/persons/KW7M-6SD\",\n
|
418
|
+
\ \"title\" : \"Person\"\n }\n },\n \"living\"
|
419
|
+
: false,\n \"gender\" : {\n \"type\" : \"http://gedcomx.org/Male\"\n
|
420
|
+
\ },\n \"names\" : [ {\n \"type\" : \"http://gedcomx.org/BirthName\",\n
|
421
|
+
\ \"nameForms\" : [ {\n \"fullText\" : \"John Smith\"\n
|
422
|
+
\ } ]\n } ],\n \"facts\" : [ {\n \"type\"
|
423
|
+
: \"http://gedcomx.org/Birth\",\n \"date\" : {\n \"original\"
|
424
|
+
: \"1 January 1900\"\n },\n \"place\" : {\n \"original\"
|
425
|
+
: \"Jericho, Queensland, Australia\"\n }\n } ],\n \"display\"
|
426
|
+
: {\n \"name\" : \"John Smith\",\n \"gender\" : \"Male\",\n
|
427
|
+
\ \"birthDate\" : \"1 January 1900\",\n \"birthPlace\"
|
428
|
+
: \"Jericho, Queensland, Australia\"\n }\n }, {\n \"id\"
|
429
|
+
: \"KW7M-6S6\",\n \"links\" : {\n \"person\" : {\n \"href\"
|
430
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/KW7M-6S6\",\n \"title\"
|
431
|
+
: \"Person\"\n }\n },\n \"living\" : false,\n
|
432
|
+
\ \"gender\" : {\n \"type\" : \"http://gedcomx.org/Female\"\n
|
433
|
+
\ },\n \"names\" : [ {\n \"type\" : \"http://gedcomx.org/BirthName\",\n
|
434
|
+
\ \"nameForms\" : [ {\n \"fullText\" : \"Mary Hawkins\"\n
|
435
|
+
\ } ]\n } ],\n \"facts\" : [ {\n \"type\"
|
436
|
+
: \"http://gedcomx.org/Marriage\",\n \"date\" : {\n \"original\"
|
437
|
+
: \"2 Feb 1930\"\n },\n \"place\" : {\n \"original\"
|
438
|
+
: \"Melbourne, Victoria, Australia\"\n }\n } ],\n \"display\"
|
439
|
+
: {\n \"name\" : \"Mary Hawkins\",\n \"gender\" : \"Female\"\n
|
440
|
+
\ }\n } ],\n \"relationships\" : [ {\n \"type\"
|
441
|
+
: \"http://gedcomx.org/Couple\",\n \"person1\" : {\n \"resource\"
|
442
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/KW7M-6SD\",\n \"resourceId\"
|
443
|
+
: \"KW7M-6SD\"\n },\n \"person2\" : {\n \"resource\"
|
444
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/KW7M-6S6\",\n \"resourceId\"
|
445
|
+
: \"KW7M-6S6\"\n }\n } ]\n }\n },\n \"id\" : \"KW7M-6SD\",\n
|
446
|
+
\ \"score\" : 512.5161,\n \"confidence\" : 5,\n \"links\" : {\n \"person\"
|
447
|
+
: {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/persons/KW7M-6SD\",\n
|
448
|
+
\ \"title\" : \"Person\"\n }\n },\n \"title\" : \"Person
|
449
|
+
KW7M-6SD (John Smith)\"\n }, {\n \"content\" : {\n \"gedcomx\" :
|
450
|
+
{\n \"persons\" : [ {\n \"id\" : \"KW73-8G5\",\n \"links\"
|
451
|
+
: {\n \"person\" : {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/persons/KW73-8G5\",\n
|
452
|
+
\ \"title\" : \"Person\"\n }\n },\n \"living\"
|
453
|
+
: false,\n \"gender\" : {\n \"type\" : \"http://gedcomx.org/Male\"\n
|
454
|
+
\ },\n \"names\" : [ {\n \"type\" : \"http://gedcomx.org/BirthName\",\n
|
455
|
+
\ \"nameForms\" : [ {\n \"fullText\" : \"John SMITH\"\n
|
456
|
+
\ } ]\n } ],\n \"facts\" : [ {\n \"type\"
|
457
|
+
: \"http://gedcomx.org/Birth\",\n \"date\" : {\n \"original\"
|
458
|
+
: \"28 May 1687\"\n }\n } ],\n \"display\" :
|
459
|
+
{\n \"name\" : \"John SMITH\",\n \"gender\" : \"Male\",\n
|
460
|
+
\ \"birthDate\" : \"28 May 1687\"\n }\n }, {\n \"id\"
|
461
|
+
: \"KW73-8GR\",\n \"links\" : {\n \"person\" : {\n \"href\"
|
462
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/KW73-8GR\",\n \"title\"
|
463
|
+
: \"Person\"\n }\n },\n \"living\" : false,\n
|
464
|
+
\ \"gender\" : {\n \"type\" : \"http://gedcomx.org/Female\"\n
|
465
|
+
\ },\n \"names\" : [ {\n \"type\" : \"http://gedcomx.org/BirthName\",\n
|
466
|
+
\ \"nameForms\" : [ {\n \"fullText\" : \"Elizabeth
|
467
|
+
BRYCE\"\n } ]\n } ],\n \"display\" : {\n \"name\"
|
468
|
+
: \"Elizabeth BRYCE\",\n \"gender\" : \"Female\"\n }\n
|
469
|
+
\ }, {\n \"id\" : \"KW73-8GV\",\n \"links\" : {\n
|
470
|
+
\ \"person\" : {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/persons/KW73-8GV\",\n
|
471
|
+
\ \"title\" : \"Person\"\n }\n },\n \"living\"
|
472
|
+
: false,\n \"gender\" : {\n \"type\" : \"http://gedcomx.org/Male\"\n
|
473
|
+
\ },\n \"names\" : [ {\n \"type\" : \"http://gedcomx.org/BirthName\",\n
|
474
|
+
\ \"nameForms\" : [ {\n \"fullText\" : \"Francis SMITH\"\n
|
475
|
+
\ } ]\n } ],\n \"display\" : {\n \"name\"
|
476
|
+
: \"Francis SMITH\",\n \"gender\" : \"Male\"\n }\n }
|
477
|
+
],\n \"relationships\" : [ {\n \"type\" : \"http://gedcomx.org/Couple\",\n
|
478
|
+
\ \"person1\" : {\n \"resource\" : \"https://sandbox.familysearch.org/platform/tree/persons/KW73-8G5\",\n
|
479
|
+
\ \"resourceId\" : \"KW73-8G5\"\n },\n \"person2\"
|
480
|
+
: {\n \"resource\" : \"https://sandbox.familysearch.org/platform/tree/persons/KW73-8GR\",\n
|
481
|
+
\ \"resourceId\" : \"KW73-8GR\"\n }\n }, {\n \"type\"
|
482
|
+
: \"http://gedcomx.org/ParentChild\",\n \"person1\" : {\n \"resource\"
|
483
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/KW73-8G5\",\n \"resourceId\"
|
484
|
+
: \"KW73-8G5\"\n },\n \"person2\" : {\n \"resource\"
|
485
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/KW73-8GV\",\n \"resourceId\"
|
486
|
+
: \"KW73-8GV\"\n }\n } ]\n }\n },\n \"id\" : \"KW73-8G5\",\n
|
487
|
+
\ \"score\" : 512.516,\n \"confidence\" : 5,\n \"links\" : {\n \"person\"
|
488
|
+
: {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/persons/KW73-8G5\",\n
|
489
|
+
\ \"title\" : \"Person\"\n }\n },\n \"title\" : \"Person
|
490
|
+
KW73-8G5 (John SMITH)\"\n }, {\n \"content\" : {\n \"gedcomx\" :
|
491
|
+
{\n \"persons\" : [ {\n \"id\" : \"KWQB-VJS\",\n \"links\"
|
492
|
+
: {\n \"person\" : {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/persons/KWQB-VJS\",\n
|
493
|
+
\ \"title\" : \"Person\"\n }\n },\n \"living\"
|
494
|
+
: false,\n \"gender\" : {\n \"type\" : \"http://gedcomx.org/Male\"\n
|
495
|
+
\ },\n \"names\" : [ {\n \"type\" : \"http://gedcomx.org/BirthName\",\n
|
496
|
+
\ \"nameForms\" : [ {\n \"fullText\" : \"John Smith\"\n
|
497
|
+
\ } ]\n } ],\n \"facts\" : [ {\n \"type\"
|
498
|
+
: \"http://gedcomx.org/Death\",\n \"date\" : {\n \"original\"
|
499
|
+
: \"1776\"\n },\n \"place\" : {\n \"original\"
|
500
|
+
: \"United States\"\n }\n }, {\n \"type\" :
|
501
|
+
\"http://gedcomx.org/Birth\",\n \"date\" : {\n \"original\"
|
502
|
+
: \"1735\"\n },\n \"place\" : {\n \"original\"
|
503
|
+
: \"England\"\n }\n } ],\n \"display\" : {\n
|
504
|
+
\ \"name\" : \"John Smith\",\n \"gender\" : \"Male\",\n
|
505
|
+
\ \"birthDate\" : \"1735\",\n \"birthPlace\" : \"England\",\n
|
506
|
+
\ \"deathDate\" : \"1776\",\n \"deathPlace\" : \"United
|
507
|
+
States\"\n }\n } ],\n \"relationships\" : [ ]\n }\n
|
508
|
+
\ },\n \"id\" : \"KWQB-VJS\",\n \"score\" : 512.51575,\n \"confidence\"
|
509
|
+
: 5,\n \"links\" : {\n \"person\" : {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/persons/KWQB-VJS\",\n
|
510
|
+
\ \"title\" : \"Person\"\n }\n },\n \"title\" : \"Person
|
511
|
+
KWQB-VJS (John Smith)\"\n }, {\n \"content\" : {\n \"gedcomx\" :
|
512
|
+
{\n \"persons\" : [ {\n \"id\" : \"KWQZ-8LK\",\n \"links\"
|
513
|
+
: {\n \"person\" : {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/persons/KWQZ-8LK\",\n
|
514
|
+
\ \"title\" : \"Person\"\n }\n },\n \"living\"
|
515
|
+
: false,\n \"gender\" : {\n \"type\" : \"http://gedcomx.org/Male\"\n
|
516
|
+
\ },\n \"names\" : [ {\n \"type\" : \"http://gedcomx.org/BirthName\",\n
|
517
|
+
\ \"nameForms\" : [ {\n \"fullText\" : \"* John SMITH\"\n
|
518
|
+
\ } ]\n } ],\n \"facts\" : [ {\n \"type\"
|
519
|
+
: \"http://gedcomx.org/Death\",\n \"date\" : {\n \"original\"
|
520
|
+
: \"12 Jun 1712\"\n },\n \"place\" : {\n \"original\"
|
521
|
+
: \"Haddam, Middlesesx, Connecticut\"\n }\n }, {\n \"type\"
|
522
|
+
: \"http://gedcomx.org/Christening\",\n \"date\" : {\n \"original\"
|
523
|
+
: \"21 Mar 1670\"\n },\n \"place\" : {\n \"original\"
|
524
|
+
: \"Beckford, Herefordshire, Engl\"\n }\n }, {\n \"type\"
|
525
|
+
: \"http://gedcomx.org/Birth\",\n \"date\" : {\n \"original\"
|
526
|
+
: \"ABT 1660\"\n },\n \"place\" : {\n \"original\"
|
527
|
+
: \"Haddam, Middlesex, Connecticut, United States\"\n }\n }
|
528
|
+
],\n \"display\" : {\n \"name\" : \"* John SMITH\",\n
|
529
|
+
\ \"gender\" : \"Male\",\n \"birthDate\" : \"ABT 1660\",\n
|
530
|
+
\ \"birthPlace\" : \"Haddam, Middlesex, Connecticut, United States\",\n
|
531
|
+
\ \"deathDate\" : \"12 Jun 1712\",\n \"deathPlace\" :
|
532
|
+
\"Haddam, Middlesesx, Connecticut\"\n }\n }, {\n \"id\"
|
533
|
+
: \"KWQZ-8FD\",\n \"links\" : {\n \"person\" : {\n \"href\"
|
534
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/KWQZ-8FD\",\n \"title\"
|
535
|
+
: \"Person\"\n }\n },\n \"living\" : false,\n
|
536
|
+
\ \"gender\" : {\n \"type\" : \"http://gedcomx.org/Female\"\n
|
537
|
+
\ },\n \"names\" : [ {\n \"type\" : \"http://gedcomx.org/BirthName\",\n
|
538
|
+
\ \"nameForms\" : [ {\n \"fullText\" : \"Sarah White\"\n
|
539
|
+
\ } ]\n } ],\n \"facts\" : [ {\n \"type\"
|
540
|
+
: \"http://gedcomx.org/Marriage\",\n \"date\" : {\n \"original\"
|
541
|
+
: \"ABT 1682\"\n },\n \"place\" : {\n \"original\"
|
542
|
+
: \"Middletown, Middlesex, Connecticut, United States\"\n }\n }
|
543
|
+
],\n \"display\" : {\n \"name\" : \"Sarah White\",\n \"gender\"
|
544
|
+
: \"Female\"\n }\n }, {\n \"id\" : \"KWQX-5TJ\",\n
|
545
|
+
\ \"links\" : {\n \"person\" : {\n \"href\"
|
546
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/KWQX-5TJ\",\n \"title\"
|
547
|
+
: \"Person\"\n }\n },\n \"living\" : false,\n
|
548
|
+
\ \"gender\" : {\n \"type\" : \"http://gedcomx.org/Female\"\n
|
549
|
+
\ },\n \"names\" : [ {\n \"type\" : \"http://gedcomx.org/BirthName\",\n
|
550
|
+
\ \"nameForms\" : [ {\n \"fullText\" : \"LA Verna Coleman\"\n
|
551
|
+
\ } ]\n } ],\n \"display\" : {\n \"name\"
|
552
|
+
: \"LA Verna Coleman\",\n \"gender\" : \"Female\"\n }\n
|
553
|
+
\ } ],\n \"relationships\" : [ {\n \"type\" : \"http://gedcomx.org/Couple\",\n
|
554
|
+
\ \"person1\" : {\n \"resource\" : \"https://sandbox.familysearch.org/platform/tree/persons/KWQZ-8LK\",\n
|
555
|
+
\ \"resourceId\" : \"KWQZ-8LK\"\n },\n \"person2\"
|
556
|
+
: {\n \"resource\" : \"https://sandbox.familysearch.org/platform/tree/persons/KWQZ-8FD\",\n
|
557
|
+
\ \"resourceId\" : \"KWQZ-8FD\"\n }\n }, {\n \"type\"
|
558
|
+
: \"http://gedcomx.org/ParentChild\",\n \"person1\" : {\n \"resource\"
|
559
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/KWQZ-8LK\",\n \"resourceId\"
|
560
|
+
: \"KWQZ-8LK\"\n },\n \"person2\" : {\n \"resource\"
|
561
|
+
: \"https://sandbox.familysearch.org/platform/tree/persons/KWQX-5TJ\",\n \"resourceId\"
|
562
|
+
: \"KWQX-5TJ\"\n }\n } ]\n }\n },\n \"id\" : \"KWQZ-8LK\",\n
|
563
|
+
\ \"score\" : 412.3539,\n \"confidence\" : 4,\n \"links\" : {\n \"person\"
|
564
|
+
: {\n \"href\" : \"https://sandbox.familysearch.org/platform/tree/persons/KWQZ-8LK\",\n
|
565
|
+
\ \"title\" : \"Person\"\n }\n },\n \"title\" : \"Person
|
566
|
+
KWQZ-8LK (* John SMITH)\"\n } ]\n}"
|
567
|
+
http_version:
|
568
|
+
recorded_at: Wed, 29 May 2013 13:18:14 GMT
|
569
|
+
recorded_with: VCR 2.4.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: familysearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
requirements:
|
83
83
|
- - ~>
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 1.0.
|
85
|
+
version: 1.0.1
|
86
86
|
type: :runtime
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -90,7 +90,7 @@ dependencies:
|
|
90
90
|
requirements:
|
91
91
|
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: 1.0.
|
93
|
+
version: 1.0.1
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: rspec
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -204,6 +204,7 @@ files:
|
|
204
204
|
- spec/fixtures/vcr_cassettes/discovery_auth_wrong_creds.yml
|
205
205
|
- spec/fixtures/vcr_cassettes/person_by_id.yml
|
206
206
|
- spec/fixtures/vcr_cassettes/person_with_relationship.yml
|
207
|
+
- spec/fixtures/vcr_cassettes/search.yml
|
207
208
|
- spec/spec_helper.rb
|
208
209
|
- spec/url_template_spec.rb
|
209
210
|
- workspace/notes/APIDesign.txt
|
@@ -244,5 +245,6 @@ test_files:
|
|
244
245
|
- spec/fixtures/vcr_cassettes/discovery_auth_wrong_creds.yml
|
245
246
|
- spec/fixtures/vcr_cassettes/person_by_id.yml
|
246
247
|
- spec/fixtures/vcr_cassettes/person_with_relationship.yml
|
248
|
+
- spec/fixtures/vcr_cassettes/search.yml
|
247
249
|
- spec/spec_helper.rb
|
248
250
|
- spec/url_template_spec.rb
|