sweet-tooth.endpoint.liberator/update-paramssweet-tooth.endpoint.liberator/assoc-in-paramssweet-tooth.endpoint.liberator/assoc-paramsweet-tooth.endpoint.liberator/assoc-paramssweet-tooth.endpoint.liberator/raweth/req instead of pathssweet-tooth.endpoint.liberator{::ef/formatter ::ef/raw}sweet-tooth.endpoint.module.liberator-reitit-router separated the liberator
reitit router from its ring handlersweet-tooth/generate 0.1.2, includes some lein template helperssweet-tooth/generate 0.1.1, using new rewrite helpersweet-tooth.generatesweet-tooth.endpoint.generate.endpointsweet-tooth/sweet-tooth-endpoint to
sweet-tooth/endpointsweet-tooth.endpoint.system/shrubbery-mock now has a new signature, making
it easier to distinguish mock method return vals from args passed to the
component.sweet-tooth.endpoint.utils/clj-kvar for specifying a var using a keyword.
resolves the var in clj, returns the keyword in cljssweet-tooth.endpoint.formatsweet-tooth.endpoint.format so that it's a little easier to
understand and more amenable to extension if it ever comes to that.sweet-tooth.endpoint.utils/format-ent, that responsibility is now
handled by sweet-tooth.endpoint.format/format-entitysweet-tooth.endpoint.systemsweet-tooth.endpoint.system/system:coll and :ent reitit router expanders to :collection
and :member. Less ambiguous, and :member is more meaningful,
especially when paired with :collection.:sweet-tooth.endpoint.system/mocked-component-opts option
for shrubbery mocks to pass through opts to the mocked componentendpoint decision maps can now be keyed by path instead of by expander type. These both work:
{:coll {:get {:handle-ok (fn [])}}}
{"/" {:get {:handle-ok (fn [])}}}
sweet-tooth.endpoint.test.harness/assert-response-contains-one-entity-like
fixed bug with multiple aritiessweet-tooth.endpoint.test.harness/assert-response-contains-entity-like
fixed bug with multiple aritiessweet-tooth.endpoint.test.harness/contains-entity? - it
wasn't transforming the response data correctly in order to perform
the desired comparison.sweet-tooth.endpoint.test.harness/contains-entity?. The assert
macros are generally more useful but this function still comes in
handy. Maybe show a little more restraint with the deprecation
hammer next time, Daniel.sweet-tooth.endpoint.group-routes the module has proved unnecessarysweet-tooth.endpoint.liberator. If those get reintroduced they can
have their own ns, as reitit doessweet-tooth.endpoint.system/init-key-alternative multimethod,
dispatching on the
:sweet-tooth.endpoint.system/init-key-alternative key in a
component's configuration.sweet-tooth.endpoint.system/shrubbery-mocksweet-tooth.endpoint.mock and
sweet-tooth.endpoint.module.mock. These were OK but the module
approach was confusing.ent-type argument to
sweet-tooth.endpoint.test.harness/assert-response-contains-one-entitysweet-tooth.endpoint.test.harness/assert-response-contains-one-entity-like
a macro for nicer assertions against an API endpoint
response. Should only be used with endpoints that return a single
entity. Advantage is that it uses (is (= ...)) so you can see the
diff between expected and actual.sweet-tooth.endpoint.test.harness/assert-response-contains-entity-like
similar to above. assert that one entity among all returned
contains specified k/v pairssweet-tooth.endpoint.routes.reitit/expand-routes added a third
argument, keywordize-ig-refs-cljs, a boolean defaulting to true
that controls whether integrant.core.Ref types are replaced with
the keyword they refer to in cljs compilation. Integrant refs almost
always refer to backend components, and replacing them with keywords
makes it easier to use the value returned by expaned-routes
directly in frontend code.sweet-tooth.endpoint.routes.reititsweet-tooth.endpoint.system/system not uses a custom init function
that differs from ig/init in that, when a component's config has
Replacement record, that record's :component key is used and the
actual init-key method is not called for that componentsweet-tooth.endpoint.test.harness/contains-entity? - use
sweet-tooth.endpoint.test.harness/assert-response-contains-*
macros insteadCan you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |