cxxxr / apispec Goto Github PK
View Code? Open in Web Editor NEWA Common Lisp library for handling Web API requests and responses.
A Common Lisp library for handling Web API requests and responses.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.