You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to mock a MSON file using Drakov. The file is loaded properly and server runs at port 3000. One of my request url in file is:
Get history books [GET /books/{id}?type=history]
Parameter
id : 1 (number, required) - ID of book
Default: 20
Response 200 (application/json; charset=utf-8)
Attributes (fixed-type)
Include Book
bookdetail (array[BookDetails], fixed-type)
book_size: 4343 (number)
What I want is that in case user sends 'id' which is not number, it should respond with different error code i.e some sort of validation should be in place. Does Drakov support this feature?
Thanks.
Atif
The text was updated successfully, but these errors were encountered:
I am trying to mock a MSON file using Drakov. The file is loaded properly and server runs at port 3000. One of my request url in file is:
Get history books [GET /books/{id}?type=history]
Parameter
1
(number, required) - ID of book20
Response 200 (application/json; charset=utf-8)
What I want is that in case user sends 'id' which is not number, it should respond with different error code i.e some sort of validation should be in place. Does Drakov support this feature?
Thanks.
The text was updated successfully, but these errors were encountered: