nitc :: api_docdown $ APIRouter :: init
nitc :: api_feedback $ APIRouter :: init
nitc :: api_metrics $ APIRouter :: init
popcorn :: Handler :: _body_type
popcorn :: Router :: _post_handlers
List of handlers to match after every other.popcorn :: Router :: _pre_handlers
List of handlers to match before every other.popcorn :: Handler :: _validator
Validator used to check body inputpopcorn :: Handler :: body_type=
popcorn :: Router :: build_route
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: APIRouter :: defaultinit
popcorn :: Handler :: defaultinit
popcorn :: Router :: defaultinit
core :: Object :: defaultinit
popcorn :: Handler :: deserialize_body
Deserialize the request bodyall(req, res)
if route
matches uri
.
popcorn :: Router :: handle_post
popcorn :: Router :: handle_pre
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).popcorn :: Router :: post_handlers
List of handlers to match after every other.popcorn :: Router :: post_handlers=
List of handlers to match after every other.popcorn :: Router :: pre_handlers
List of handlers to match before every other.popcorn :: Router :: pre_handlers=
List of handlers to match before every other.popcorn :: Router :: use_before
Register a pre-handler for a routepath
.
popcorn :: Handler :: validate_body
Validate body input withvalidator
popcorn :: Handler :: validator
Validator used to check body inputpopcorn :: Handler :: validator=
Validator used to check body input
redef class APIRouter
redef init do
super
use("/list", new APIList(config))
use("/random", new APIRandom(config))
use("/search", new APISearch(config))
use("/entity/:id", new APIEntity(config))
use("/doc/:id", new APIEntityDoc(config))
use("/code/:id", new APIEntityCode(config))
use("/lin/:id", new APIEntityLinearization(config))
use("/defs/:id", new APIEntityDefs(config))
use("/intros/:id", new APIEntityIntros(config))
use("/redefs/:id", new APIEntityRedefs(config))
use("/meta/:id", new APIEntityMetadata(config))
use("/all/:id", new APIEntityAll(config))
use("/ancestors/:id", new APIEntityAncestors(config))
use("/parents/:id", new APIEntityParents(config))
use("/children/:id", new APIEntityChildren(config))
use("/descendants/:id", new APIEntityDescendants(config))
use("/uml/:id", new APIEntityUML(config))
use("/graph/inheritance/:id", new APIInheritanceGraph(config))
use("/catalog/packages/", new APICatalogPackages(config))
use("/catalog/stats", new APICatalogStats(config))
use("/catalog/tags", new APICatalogTags(config))
use("/catalog/tag/:tid", new APICatalogTag(config))
use("/catalog/person/:pid", new APICatalogPerson(config))
use("/catalog/person/:pid/maintaining", new APICatalogMaintaining(config))
use("/catalog/person/:pid/contributing", new APICatalogContributing(config))
use("/ini/desc/:id", new APIIniDesc(config))
use("/ini/git/:id", new APIIniGit(config))
use("/ini/clone/:id", new APIIniClone(config))
use("/ini/issues/:id", new APIIniIssues(config))
use("/ini/maintainer/:id", new APIIniMaintainer(config))
use("/ini/contributors/:id", new APIIniContributors(config))
use("/ini/license/:id", new APIIniLicense(config))
use("/ini/license-file/:id", new APIIniLicenseFile(config))
use("/ini/license-content/:id", new APIIniLicenseFileContent(config))
use("/ini/contrib-file/:id", new APIIniContribFile(config))
use("/ini/contrib-content/:id", new APIIniContribFileContent(config))
end
end
src/doc/api/api_model.nit:19,1--64,3
redef class APIRouter
redef init do
super
use("/feedback/grades/most", new APIStarsMost(config))
use("/feedback/grades/best", new APIStarsBest(config))
use("/feedback/grades/worst", new APIStarsWorst(config))
use("/feedback/grades/users", new APIStarsUsers(config))
use("/feedback/user/stars", new APIUserStars(config))
use("/feedback/stars/:id", new APIStars(config))
use("/feedback/stars/:id/dimension/:dimension", new APIStarsDimension(config))
end
end
src/doc/api/api_feedback.nit:27,1--42,3
redef class APIRouter
redef init do
super
use("/metrics/structural/:id", new APIStructuralMetrics(config))
end
end
src/doc/api/api_metrics.nit:20,1--25,3
redef class APIRouter
redef init do
super
use("/docdown/", new APIDocdown(config))
end
end
src/doc/api/api_docdown.nit:31,1--36,3