Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

Commit b855f3b

Browse files
author
sowerstl
committed
Update Search.md JSON to represent actual API response.
1 parent 292320e commit b855f3b

File tree

1 file changed

+96
-42
lines changed

1 file changed

+96
-42
lines changed

src/main/java/gov/osti/services/Search.md

Lines changed: 96 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -77,27 +77,54 @@ Content-Type: application/json
7777
```
7878
```json
7979
{
80-
"responseHeader":{
81-
"status":0,
82-
"QTime":0,
83-
"params":{
84-
"q":"_text_:(test)",
85-
"sort":"",
86-
"rows":"10"}},
87-
"response":{"numFound":15,"start":0,"docs":[
88-
{
89-
"codeId":25818,
90-
"siteOwnershipCode":"OSTI",
91-
"openSource":true,
92-
"landingPage":"https://en.wikipedia.org/wiki/Anarchist_Protected_Area",
93-
"accessibility":"ON",
94-
"accessLimitations":["UNL"],
95-
"developers.name":["Last, test "],
96-
"_names":["Last, test ",
97-
"test, test "],
98-
"contributors.name":["test, test "]
99-
}
100-
]
80+
"num_found": 1,
81+
"start": 0,
82+
"docs": [
83+
{
84+
"code_id": 12345,
85+
"site_ownership_code": "OSTI",
86+
"open_source": false,
87+
"landing_page": "https://www.something.com",
88+
"accessibility": "CS",
89+
"software_type": "S",
90+
"developers": [
91+
{
92+
"email": "[email protected]",
93+
"orcid": "",
94+
"first_name": "Last",
95+
"last_name": "Person",
96+
"middle_name": "",
97+
"affiliations": [
98+
"Some Aerospace Group"
99+
]
100+
}
101+
],
102+
"contributors": [
103+
{
104+
"email": "[email protected]",
105+
"orcid": "",
106+
"first_name": "Contributor1",
107+
"last_name": "Last",
108+
"middle_name": "",
109+
"contributor_type": "DataCurator",
110+
"affiliations": [
111+
"Some Corp."
112+
]
113+
}
114+
],
115+
"sponsoring_organizations": [],
116+
"contributing_organizations": [],
117+
"research_organizations": [],
118+
"related_identifiers": [],
119+
"software_title": "Testing",
120+
"description": "This is just a test record.",
121+
"country_of_origin": "United States",
122+
"licenses": [
123+
"MIT License",
124+
"Mozilla Public License 2.0"
125+
]
126+
}
127+
]
101128
}
102129
```
103130

@@ -125,27 +152,54 @@ Content-Type: application/json
125152
```
126153
```json
127154
{
128-
"responseHeader":{
129-
"status":0,
130-
"QTime":0,
131-
"params":{
132-
"q":"_text_:(test)",
133-
"sort":"",
134-
"rows":"10"}},
135-
"response":{"numFound":15,"start":0,"docs":[
136-
{
137-
"codeId":25818,
138-
"siteOwnershipCode":"OSTI",
139-
"openSource":true,
140-
"landingPage":"https://en.wikipedia.org/wiki/Anarchist_Protected_Area",
141-
"accessibility":"ON",
142-
"accessLimitations":["UNL"],
143-
"developers.name":["Last, test "],
144-
"_names":["Last, test ",
145-
"test, test "],
146-
"contributors.name":["test, test "]
147-
}
148-
]
155+
"num_found": 1,
156+
"start": 0,
157+
"docs": [
158+
{
159+
"code_id": 12345,
160+
"site_ownership_code": "OSTI",
161+
"open_source": false,
162+
"landing_page": "https://www.something.com",
163+
"accessibility": "CS",
164+
"software_type": "S",
165+
"developers": [
166+
{
167+
"email": "[email protected]",
168+
"orcid": "",
169+
"first_name": "Last",
170+
"last_name": "Person",
171+
"middle_name": "",
172+
"affiliations": [
173+
"Some Aerospace Group"
174+
]
175+
}
176+
],
177+
"contributors": [
178+
{
179+
"email": "[email protected]",
180+
"orcid": "",
181+
"first_name": "Contributor1",
182+
"last_name": "Last",
183+
"middle_name": "",
184+
"contributor_type": "DataCurator",
185+
"affiliations": [
186+
"Some Corp."
187+
]
188+
}
189+
],
190+
"sponsoring_organizations": [],
191+
"contributing_organizations": [],
192+
"research_organizations": [],
193+
"related_identifiers": [],
194+
"software_title": "Testing",
195+
"description": "This is just a test record.",
196+
"country_of_origin": "United States",
197+
"licenses": [
198+
"MIT License",
199+
"Mozilla Public License 2.0"
200+
]
201+
}
202+
]
149203
}
150204
```
151205

0 commit comments

Comments
 (0)