{
"apiVersion": "0.0.1",
"swaggerVersion": "1.2",
"basePath": "http://api.dotdeploy.works",
"resourcePath": "/user",
"produces": ["application/json"],
"apis": [
"path": "/user",
"operations": [
"method": "GET",
"summary": "Retrieve all known information about a user which corresponds with the provided accesstoken",
"type": "User",
"nickname": "findUser",
"authorizations": {},
"parameters": [
"name": "accesstoken",
"description": "Token provided from authentication with Google OAuth",
"required": "true",
"type": "string",
"paramType": "query"
}
],
"responseMessages": [
"code": 500,
"message": "This is temporary and likely means your accesstoken is invalid."
]
"models": {
"Machine": {
"id": "Machine",
"required": [
"machine-id",
"active",
"profiles",
"created-on",
"last-checkin",
"hostname"
"properties": {
"machine-id": {
"type": "string"
},
"active": {
"type": "boolean",
"description": "A deleted or deauthorized machine will be marked inactive"
"profiles": {
"type": "array",
"items": {
"created-on": {
"type": "dateTime"
"last-checkin": {
"type": "dateTime",
"description": "The last time this machine checked for updates or performed any action using its token"
"name": {
"description": "A friendly name other than the hostname"
"hostname": {
"description": "The hostname as provided by this machine at creation time"
"description": {
"FileRevision": {
"id": "FileRevision",
"grid-id",
"sha256",
"revision-id"
"grid-id": {
"description": "The location of this file in GridFS"
"sha256": {
"description": "The SHA256 hash of the body of this file"
"revision-id": {
"type": "int",
"description": "An incrementing integrer representing the current iteration of this file"
"File": {
"id": "File",
"file-id",
"path",
"type",
"revisions",
"public",
"shared-users"
"file-id": {
"path": {
"description": "The path where this file should be located on a machine"
"type": {
"description": "The type of dotfile this file represents. Ex: bashrc, zshrc, gitconfig"
"description": "A deleted file will be set to inactive"
"revisions": {
"$ref": "FileRevision"
"public": {
"description": "If true, anyone with the link can see this file"
"shared-users": {
"forked-from": {
"description": "If set, this indicates the file-id this file was copied from"
"Token": {
"id": "Token",
"token-id",
"created-on"
"token-id": {
"uses": {
"description": "The number of times this token can be used before being invalid"
"expires-on": {
"description": "The date and time when this token will no longer be valid"
"User": {
"id": "User",
"user-id",
"name",
"machines",
"files",
"tokens"
"user-id": {
"description": "Friendly name of the user"
"machines": {
"$ref": "Machine"
"files": {
"$ref": "File"
"tokens": {
"$ref": "Token"