Btibert3
11/22/2017 - 7:08 PM

Example Swagger Output from R

Example Swagger Output from R

{
  "swagger": "2.0",
  "info": {
    "description": "API Description",
    "title": "API Title",
    "version": "1.0.0"
  },
  "host": "localhost:8000",
  "schemes": [
    "http"
  ],
  "produces": [
    "application\/json"
  ],
  "paths": {
    "\/score": {
      "get": {
        "summary": " Score a basic model to predict admit staths",
        "responses": {
          "default": {
            "description": "Default response."
          }
        },
        "parameters": [
          {
            "name": "gre",
            "description": "the applicants gre",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "gpa",
            "description": "the applicants gpa",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "rank",
            "description": "The admissions rank",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ]
      }
    }
  },
  "basePath": "\/"
}