Skip to content

Instantly share code, notes, and snippets.

@IanMulvany
Last active August 29, 2015 14:23
Show Gist options
  • Save IanMulvany/1874ac56d31c4fb02810 to your computer and use it in GitHub Desktop.
Save IanMulvany/1874ac56d31c4fb02810 to your computer and use it in GitHub Desktop.
proposed endpoint for article info api
/articles/{doi}/pub_info:
get:
description: Get PDF file locations in JSON format.
operationId: doi
produces:
- application/json
parameters:
- name: doi
in: path
description: FID of article
required: true
type: integer
format: int64
responses:
'200':
description: test response
schema:
type: array
items:
$ref: '#/definitions/pub_info'
definitions:
pub_info:
description: an array of version numbers
properties:
doi:
type: string
description: Fid of the article
version:
type: integer
description: version of the document
update_date:
type: string
description: date that this version was updated on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment