Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mah0001 committed Jul 17, 2019
2 parents 1a5fdda + 01dc09c commit af2942b
Show file tree
Hide file tree
Showing 664 changed files with 68,726 additions and 10,690 deletions.
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ trash
modules/mpdf
.settings
datafiles
*.spc
-*.zip
_notes
backup/*.sql
database.php
email.php
application/cache/*
application/config/database.php
application/config/email.php
Expand All @@ -21,7 +18,5 @@ system.old
patches
.idea
imports
files/sessions
files/public
sample
system/language/base
files
sample
46 changes: 37 additions & 9 deletions api-documentation/catalog-admin/ddi-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,25 @@
"items":{
"type":"object",
"properties":{
"type":{
"vgid":{
"title":"Variable Group ID",
"description":"Unique ID for the variable group e.g. VG1",
"type":"string",
"maxLength": 45
},
"variables":{
"title":"Variables",
"description":"List of variables for the group seperated by space e.g. V1 V2 V3",
"type":"string",
"maxLength": 5000
},
"variable_groups":{
"title":"Variable groups",
"description":"List of sub-groups e.g. VG2 VG3 VG4",
"type":"string",
"maxLength": 1000
},
"group_type":{
"title":"Type",
"type":"string",
"enum":[
Expand All @@ -1561,30 +1579,40 @@
"file",
"randomized",
"other"
]
],
"maxLength": 45
},
"label":{
"title":"Label",
"type":"string"
"type":"string",
"maxLength": 255
},
"universe":{
"title":"Universe",
"type":"string"
"type":"string",
"maxLength": 255
},
"notes":{
"title":"Notes",
"type":"string"
"type":"string",
"maxLength": 500
},
"txt":{
"title":"Text",
"type":"string"
"type":"string",
"maxLength": 500
},
"definition":{
"title":"Definition",
"type":"string"
"type":"string",
"maxLength": 500
}
}
}
},
"required":[
"vgid"
]
},
"additionalProperties":false
}
}
}
163 changes: 131 additions & 32 deletions api-documentation/catalog-admin/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ info:
To use the API, you will require the '`API-KEY'`, see the section
`Authentication`
version: 5.0
title: NADA
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
basePath: /index.php/api/
tags:
- name: API keys
description: The API requires `API-KEY` for all endpoints and will only work for 'ADMIN' user accounts only. To generate the API keys, use `auth/login` method.
- name: Datasets
description: Datasets represent all types of data such as Microdata, Timeseries, Geospatail, Scripts, etc.
- name: External resources
Expand All @@ -24,6 +27,9 @@ tags:
- name: Filestore
description: File storage for uploading and viewing images and other document types.
x-tagGroups:
- name: Authentication
tags:
- API keys
- name: Catalog administration
tags:
- Collections
Expand All @@ -42,6 +48,80 @@ x-tagGroups:
schemes:
- http
paths:
/auth/login:
post:
tags:
- API keys
summary: Get API Keys
description: Get user API keys
operationId: getApiKey
consumes:
- application/json
produces:
- application/json
parameters:
- in: "formData"
name: "email"
type: string
description: "User email address"
required: true
- in: "formData"
name: "password"
type: string
description: "Password"
required: true
responses:
'200':
description: successful operation
schema:
type: object
properties:
user_id:
type: integer
description: The user ID
user_name:
type: string
description: The user name
api_keys:
type: array
description: API keys
/auth/create_api_key:
post:
tags:
- API keys
summary: Create API key
description: Create a new API key
operationId: createApiKey
consumes:
- application/json
produces:
- application/json
parameters:
- in: "formData"
name: "email"
type: string
description: "User email address"
required: true
- in: "formData"
name: "password"
type: string
description: "Password"
required: true
responses:
'200':
description: successful operation
schema:
type: object
properties:
user_id:
type: integer
description: The user ID
user_name:
type: string
description: The user name
api_keys:
type: array
description: API keys
/collections:
get:
tags:
Expand Down Expand Up @@ -1617,8 +1697,9 @@ definitions:
readOnly: true
dctype:
type: string
example: doc/adm
description:
Document types for external resource
Document types for external resource e.g. `doc/adm`

* `doc/adm` - Document, Administrative [doc/adm]

Expand Down Expand Up @@ -1650,37 +1731,55 @@ definitions:

* `vid` - Video [vid]

* `web` - Web Site [web]

enum:
- doc/adm
- doc/anl
- doc/oth
- doc/qst
- doc/ref
- doc/rep
- doc/tec
- aud
- dat
- map
- dat/micro
- pic
- prg
- tbl
- vid
- web
* `web` - Web Site [web]

dcformat:
type: string
description: Document format
enum:
- pdf
- word
- txt
- csv
- dta
- spss
- zip
example: application/zip
description: Document file format e.g. `application/zip`

* `application/x-compressed` - Compressed, Generic

* `application/zip` - Compressed, ZIP

* `application/x-cspro` - Data, CSPro

* `application/dbase` - Data, dBase

* `application/msaccess` - Data, Microsoft Access

* `application/x-sas` - Data, SAS

* `application/x-spss` - Data, SPSS

* `application/x-stata` - Data, Stata

* `text` - Document, Generic

* `text/html` - Document, HTML

* `application/msexcel` - Document, Microsoft Excel

* `application/mspowerpoint` - Document, Microsoft PowerPoint

* `application/msword` - Document, Microsoft Word

* `application/pdf` - Document, PDF

* `application/postscript` - Document, Postscript

* `text/plain` - Document, Plain

* `text/wordperfect` - Document, WordPerfect

* `image/gif` - Image, GIF

* `image/jpeg` - Image, JPEG

* `image/png` - Image, PNG

* `image/tiff` - Image, TIFF

title:
type: string
author:
Expand Down Expand Up @@ -1713,6 +1812,9 @@ definitions:
changed:
type: string
format: date-time
required:
- title
- filename
xml:
name: Resource
VariableList:
Expand Down Expand Up @@ -1814,6 +1916,3 @@ definitions:
type: string
message:
type: string
externalDocs:
description: Find out more about Swagger
url: 'http://swagger.io'
Loading

0 comments on commit af2942b

Please sign in to comment.