Add basic api unit. This unit will be responsible for providing all stf restful apis.

This commit is contained in:
Vishal Banthia
2015-12-02 18:18:31 +09:00
parent 7ea7871ec0
commit 41f306a7f0
7 changed files with 172 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
swagger: "2.0"
info:
version: "1.0.10"
title: Smartphone Test Farm
description: Control and manager real Smartphone devices from browser and apis
license:
name: Apache-2.0
url: http://www.apache.org/licenses/LICENSE-2.0
contact:
url: http://openstf.io/
email: contact@openstf.io
basePath: /api/v1/
schemes:
- http
- https
consumes:
- application/json
produces:
- application/json
paths:
/me:
x-swagger-router-controller: user
get:
summary: User Profile
description: The User Profile endpoint returns information about current authorized user.
operationId: getCurrentUser
responses:
"200":
description: Current User Profile information
schema:
$ref: "#/definitions/UserResponse"
default:
description: Unexpected Error
schema:
$ref: "#/definitions/ErrorResponse"
definitions:
UserResponse:
required:
- user
properties:
user:
type: object
ErrorResponse:
required:
- message
properties:
message:
type: string