Uploaded image for project: 'Singa'
  1. Singa
  2. SINGA-402

Rafiki - adding Swagger support

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None

    Description

      Swagger is a software tool that helps in design, development, documenting and testing of RESTful web services.

      It is proposed to add Swagger support for Rafiki web API. This will help u
sers and developers to run the web queries from Swagger UI directly instead of using curl or python commands. It will also help in documentation and testing.

      An example file is provided with this issue to check if this proposal will be useful or not. The attached file has two working examples from the current Rafiki web API: /tokens and /models. 

To run the file:

      $ docker run -p 80:8080 -e SWAGGER_JSON=/rafiki-api/rafiki.json -v /{PATH_TO_RAFIKI.JSON}:/rafiki-api swaggerapi/swagger-ui
      

      (Replace /

      { PATH_TO_RAFIKI.JSON}

      with the path to rafiki.json file in your machine)

      Start Rafiki and open "localhost" in web browser to show Swagger UI for the API.

      Attachments

        1. rafiki.json
          2 kB
          Moaz Reyad

        Activity

          People

            Unassigned Unassigned
            moazreyad Moaz Reyad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: