aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat-go/fatcat-openapi2.yml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-09 18:38:24 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-09 18:38:35 -0700
commitfc3d70a256dbd45fdd54a21efa6abc49b554e8e2 (patch)
tree5b1e8bdd9dc42494e36efd193964f1588c2190f7 /fatcat-go/fatcat-openapi2.yml
parentf36836a6399022338ec02849da42f6f518c7a54f (diff)
downloadfatcat-fc3d70a256dbd45fdd54a21efa6abc49b554e8e2.tar.gz
fatcat-fc3d70a256dbd45fdd54a21efa6abc49b554e8e2.zip
rename golang directory
Diffstat (limited to 'fatcat-go/fatcat-openapi2.yml')
-rw-r--r--fatcat-go/fatcat-openapi2.yml93
1 files changed, 0 insertions, 93 deletions
diff --git a/fatcat-go/fatcat-openapi2.yml b/fatcat-go/fatcat-openapi2.yml
deleted file mode 100644
index 2f635697..00000000
--- a/fatcat-go/fatcat-openapi2.yml
+++ /dev/null
@@ -1,93 +0,0 @@
----
-swagger: "2.0"
-info:
- title: fatcat
- description: A scalable, versioned, API-oriented catalog of bibliographic entities
- and file metadata
- version: 0.1.0
-schemes: [http, https]
-basePath: /v0
-host: api.fatcat.wiki
-consumes:
-- application/json
-produces:
-- application/json
-
-# TODO: try to make this work:
-#x-entity-props: &ENTITYPROPS
-#<<: *ENTITYPROPS
-
-
-definitions:
- error:
- type: object
- required:
- - message
- properties:
- message:
- type: string
- creator_entity:
- type: object
- required:
- - ident
- - state
- properties:
- state:
- type: string
- # actually enum of: (wip, active, redirect, deleted)
- ident:
- type: string
- # format: uuid
- revision:
- type: string
- # integer
- redirect:
- type: string
- # format: uuid
- name:
- type: string
- orcid:
- type: string
- # format: custom
-
-paths:
- /creator:
- post:
- parameters:
- - name: body
- in: body
- schema:
- $ref: "#/definitions/creator_entity"
- responses:
- 201:
- description: created
- schema:
- $ref: "#/definitions/creator_entity"
- default:
- description: generic error response
- schema:
- $ref: "#/definitions/error"
- /creator/{id}:
- parameters:
- - name: id
- in: path
- type: string
- required: true
- get:
- responses:
- 200:
- description: fetch a single creator by id
- schema:
- $ref: "#/definitions/creator_entity"
- default:
- description: generic error response
- schema:
- $ref: "#/definitions/error"
-# /creator/lookup:
-
-# /editgroup:
-# /editgroup/{id}:
-# /editgroup/{id}/accept:
-
-# /editor/{username}:
-# /editor/{username}/changelog: