update API for creating user, updating password and comment post return.

This commit is contained in:
wy65701436 2016-05-02 21:05:06 -07:00
parent 2a461ee53e
commit ff42923401

View File

@ -393,15 +393,13 @@ paths:
type: string type: string
format: string format: string
required: true required: true
description: The username of the new created user. Maximum of 20 description: The username of the new created user. Maximum of 20 characters.
characters.
- name: password - name: password
in: body in: body
type: string type: string
format: string format: string
required: true required: true
description: The password of the new created user. Maximum of 20 description: The password of the new created user. Maximum of 20 characters.
characters.
- name: email - name: email
in: body in: body
type: string type: string
@ -413,15 +411,13 @@ paths:
type: string type: string
format: string format: string
required: true required: true
description: Full name associated with the new created user. description: Full name associated with the new created user. Maximum of 20 characters.
Maximum of 20 characters.
- name: comment - name: comment
in: body in: body
type: string type: string
format: string format: string
required: false required: false
description: Comments associated with the new created user. description: Comments associated with the new created user. Maximum of 30 characters.
Maximum of 30 characters.
tags: tags:
- Products - Products
responses: responses:
@ -522,8 +518,7 @@ paths:
200: 200:
description: Updated password successfully. description: Updated password successfully.
400: 400:
description: Invalid user ID; Old password is blank; New password description: Invalid user ID; Old password is blank; New password is blank.
is blank.
401: 401:
description: Old password is not correct. description: Old password is not correct.
403: 403: