nitc :: actors_injection_phase
Injects model for the classes annotated with "is actor" sonitc :: astbuilder
Instantiation and transformation of semantic nodes in the AST of expressions and statementsnitc :: commands_ini
nitc :: detect_variance_constraints
Collect metrics about detected variances constraints on formal types.FileServer
action, which is a standard and minimal file server
HttpRequest
class and services to create it
nitc :: i18n_phase
Basic support of internationalization through the generation of id-to-string tablesSerializable::inspect
to show more useful information
markdown2 :: markdown_html_rendering
HTML rendering of Markdown documentsnitc :: modelbuilder
more_collections :: more_collections
Highly specific, but useful, collections-related classes.curl :: native_curl
Binding of C libCurl which allow us to interact with network.threaded
annotation
serialization :: serialization_core
Abstract services to serialize Nit objects to different formatsnitc :: serialization_model_phase
Phase generating methods (model-only) to serialize Nit objectsdeserialize_json
and JsonDeserializer
serialize_to_json
and JsonSerializer
nitc :: toolcontext
Common command-line tool infrastructure than handle options and error messagesnitc :: uml_module
Services for generation of a UML package diagram based on aModel
core :: union_find
union–find algorithm using an efficient disjoint-set data structure
# Components required to build a web server about the nit model.
module api
import api_auth
import api_model
import api_docdown
import api_metrics
import api_feedback
import api_light
redef class APIRouter
redef init do
super
use("/*", new APIErrorHandler(config)) # catch 404 errors
end
end
# Error handler user to catch non resolved request by the API
#
# Displays a JSON formatted 404 error.
class APIErrorHandler
super APIHandler
redef fun all(req, res) do
res.api_error(404, "Not found")
end
end
src/doc/api/api.nit:15,1--41,3