Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "basePath": "/api",
- "definitions": {
- "user": {
- "properties": {
- "user_id": {
- "description": "User ID.",
- "example": 55,
- "type": "integer"
- },
- "user_name_first": {
- "description": "User's first name",
- "example": "Jan ",
- "type": "string"
- },
- "user_name_last": {
- "description": "User's last name",
- "example": "Nowak",
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "host": "xxx.yy.z",
- "info": {
- "title": "API",
- "version": "0.2"
- },
- "parameters": {
- "userIdParam": {
- "description": "User id",
- "format": "int64",
- "in": "path",
- "name": "id",
- "required": "true",
- "type": "integer"
- }
- },
- "paths": {
- "/users/{id}": {
- "get": {
- "parameters": [
- {
- "$ref": "#/parameters/userIdParam"
- }
- ],
- "responses": {
- "200": {
- "description": "Single user details",
- "schema": {
- "properties": {
- "code": {
- "description": "Response code",
- "example": "200",
- "type": "string"
- },
- "data": {
- "$ref": "#/definitions/user"
- },
- "success": {
- "description": "Operation status",
- "example": true,
- "type": "boolean"
- },
- "type": {
- "description": "Action type",
- "example": "Users",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
- },
- "summary": "Returns user data specified by user ID",
- "tags": [
- "users"
- ]
- }
- }
- },
- "schemes": [
- "https"
- ],
- "swagger": "2.0",
- "tags": [
- {
- "description": "Actions involving users",
- "name": "users"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement