FORMAT: 1A
Answer to "How to format a POST request on apiary.io". Make sure to refer to "application/x-www-form-urlencoded or multipart/form-data".
Do not forget to escape [
with %5B
and ]
with %5D
in data[User][username]=qq&data[User][password]=qq&data[User][remember]=0
.
API Blueprint Source:
# Login [/users/login]
## Make Login [POST]
+ Request (application/x-www-form-urlencoded)
data%5BUser%5D%5Busername%5D=qq&data%5BUser%5D%5Bpassword%5Dqq&data%5BUser%5D%5Bremember%5D=0
+ Response 201
-
Request (application/x-www-form-urlencoded)
data%5BUser%5D%5Busername%5D=qq&data%5BUser%5D%5Bpassword%5Dqq&data%5BUser%5D%5Bremember%5D=0
-
Response 201
data%5BUser%5D%5Busername%5D=qq&data%5BUser%5D%5Bpassword%5D=qq&data%5BUser%5D%5Bremember%5D=0