-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Please start the example using:
clackup -s apispec -s ningle ningle/app.lisp
Query the user "database", e.g. with httpie:
http :5000/users
Expected result: an empty array response, like [].
Actual result: NIL is invalid for #<ARRAY {700A657303}>
Query the db for a non-existing user:
http :5000/users/0
Response is correct. User is not found.
Add a user:
http POST :5000/users name=SomeUser
Empty response seems to be correct
Retrieve this user:
http :5000/users/1
Expected result: the json representation of the user SomeUser.
Actual result: #<APISPEC/EXAMPLES/NINGLE/APP::USER {700A1ACF23}> is invalid for #<OBJECT {700B009DA3}>:
Not an association list
Retrieve all users:
http :5000/users
Expected result: json array of all users
Actual result:
(#<APISPEC/EXAMPLES/NINGLE/APP::USER {700A1ACF23}>) is invalid for #<ARRAY {700B009D83}>:
Not an array