Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "swagger": "2.0",
- "info": {
- "description": "This is a demo api server.",
- "version": "1.0",
- "title": "Demo API",
- "termsOfService": "http://swagger.io/terms/",
- "contact": {
- "email": "api@demo.test"
- },
- "license": {
- "name": "Apache 2.0"
- }
- },
- "host": "api.remakescape.com",
- "basePath": "/v2",
- "tags": [
- {
- "name": "Player",
- "description": "Everything about a player"
- }
- ],
- "schemes": [
- "https"
- ],
- "paths": {
- "/player": {
- "post": {
- "tags": [
- "Player"
- ],
- "summary": "Add a new player.",
- "description": "",
- "operationId": "addPlayer",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "parameters": [
- {
- "in": "body",
- "name": "body",
- "description": "Player object that needs you want to create.",
- "required": true,
- "schema": {
- "$ref": "#/definitions/Player"
- }
- }
- ],
- "responses": {
- "405": {
- "description": "Invalid input"
- }
- }
- }
- }
- },
- "definitions": {
- "Player": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int256"
- },
- "username": {
- "type": "string"
- },
- "email": {
- "type": "string",
- "format": "email"
- },
- "password": {
- "type": "string"
- },
- "displayName": {
- "type": "string"
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement