Skip to content

Commit 2e486af

Browse files
committed
Adding all the stuff back up.
1 parent 8676b86 commit 2e486af

37 files changed

+4299
-4323
lines changed

openapi.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,11 +1065,9 @@ components:
10651065
preparedby:
10661066
properties:
10671067
contactid:
1068-
example: 44
1069-
type: integer
1068+
$ref: '#/components/schemas/contactid'
10701069
contactname:
1071-
example: 'Grimm, Eric Christopher'
1072-
type: string
1070+
$ref: '#/components/schemas/contactname'
10731071
familyname:
10741072
example: Grimm
10751073
type: string
@@ -1367,7 +1365,7 @@ components:
13671365
altitude:
13681366
type: integer
13691367
collectionunit:
1370-
type: string
1368+
$ref: '#/components/schemas/collectionunit'
13711369
collectionunitid:
13721370
$ref: '#/components/schemas/collectionunitid'
13731371
geography:

openapi/components/schemas/schemas.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,9 @@ chronology:
295295
preparedby:
296296
properties:
297297
contactid:
298-
example: 44
299-
type: integer
298+
$ref: '#/components/schemas/contactid'
300299
contactname:
301-
example: Grimm, Eric Christopher
302-
type: string
300+
$ref: '#/components/schemas/contactname'
303301
familyname:
304302
example: Grimm
305303
type: string
@@ -597,7 +595,7 @@ dataset:
597595
altitude:
598596
type: integer
599597
collectionunit:
600-
type: string
598+
$ref: '#/components/schemas/collectionunit'
601599
collectionunitid:
602600
$ref: '#/components/schemas/collectionunitid'
603601
geography:

public/tests.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

public/tests.json

Lines changed: 4259 additions & 4279 deletions
Large diffs are not rendered by default.

test/v1.5-data-geopoliticalunits-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('tests for /v1.5/data/geopoliticalunits', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "An array of geopolitical units."', function() {
1010
const response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits', {
11-
'qs': {'gpid': 5392, 'gpname': 'Canada', 'rank': 2, 'lower': false},
11+
'qs': {'gpid': 5392, 'gpname': 'Canada', 'rank': 1, 'lower': false},
1212
'time': true,
1313
});
1414

test/v1.5-data-geopoliticalunits-{gpid}-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const expect = chakram.expect;
77
describe('tests for /v1.5/data/geopoliticalunits/{gpid}', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "An array of geopolitical units."', function() {
10-
const response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/162', {
10+
const response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/500', {
1111
'time': true,
1212
});
1313

test/v1.5-data-sites-{siteid}-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const expect = chakram.expect;
77
describe('tests for /v1.5/data/sites/{siteid}', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "An array of site elements."', function() {
10-
const response = request('get', 'http://localhost:3001/v1.5/data/sites/7980', {
10+
const response = request('get', 'http://localhost:3001/v1.5/data/sites/500', {
1111
'time': true,
1212
});
1313

test/v2.0-apps-constdb-datasetages-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasetages', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. "', function() {
1010
const response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetages', {
11-
'qs': {'dbid': 17},
11+
'qs': {'dbid': 34},
1212
'time': true,
1313
});
1414

test/v2.0-apps-constdb-datasets-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasets', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "Returns the set of datasets contained within a constituent database, identified by the constituent database identifier. Used for quick landing page generation. "', function() {
1010
const response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasets', {
11-
'qs': {'dbid': 18},
11+
'qs': {'dbid': 2},
1212
'time': true,
1313
});
1414

test/v2.0-apps-constdb-datasetuploads-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasetuploads', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. "', function() {
1010
const response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetuploads', {
11-
'qs': {'dbid': 34},
11+
'qs': {'dbid': 4},
1212
'time': true,
1313
});
1414

0 commit comments

Comments
 (0)