Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swagger: "2.0"
- info:
- description: ""
- version: "1.0.0"
- title: "Memrise course API"
- termsOfService: "http://swagger.io/terms/"
- license:
- name: "Apache 2.0"
- url: "http://www.apache.org/licenses/LICENSE-2.0.html"
- host: "www.memrise.com"
- basePath: "/"
- schemes:
- - "https"
- paths:
- /course/{id}/{course_name}/:
- get:
- summary: "Get course by id and name"
- produces:
- - "text/html"
- parameters:
- - name: "id"
- in: "path"
- required: true
- type: "integer"
- - name: "course_name"
- in: "path"
- required: true
- type: "string"
- responses:
- 200:
- description: "Successfull"
- /course/{id}/{course_name}/enroll:
- get:
- summary: "Start course by id and name"
- produces:
- - "text/html"
- parameters:
- - name: "id"
- in: "path"
- required: true
- type: "integer"
- - name: "course_name"
- in: "path"
- required: true
- type: "string"
- responses:
- 302:
- description: "Course started successfully"
- /course/{id}/{course_name}/difficult-items/:
- get:
- summary: "List of user most difficult words"
- produces:
- - "text/html"
- parameters:
- - name: "id"
- in: "path"
- required: true
- type: "integer"
- - name: "course_name"
- in: "path"
- required: true
- type: "string"
- responses:
- 200:
- description: "Successfully"
- definitions:
- Course:
- type: "object"
- properties:
- id:
- type: "integer"
- format: "int64"
- name:
- type: "string"
- title:
- type: "string"
- levels:
- type: "array"
- items:
- type: "string"
- externalDocs:
- description: "Find out more about Swagger"
- url: "http://swagger.io"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement