This guy is really good at explaining things clearly and quickly
@--Nath--2 жыл бұрын
Thank you for your kind praise! Always looking to make topics digestible!
@jeffersonsousa53543 жыл бұрын
This video is pretty good!
@vsingh-262 жыл бұрын
Good video, but I wanted to know how does that magic happens in the router.
@--Nath--2 жыл бұрын
So a bit more info: there's two parsers/validation mechanisms in API Kit router - one that's RAML only (the "legacy" one) and the newer one that can do both RAML and OAS. The newer one (and this applies to various parts of the platform) you might see mention of AML or AMF which is the "neutral territory" type framework/library that we've made to abstract away the spec specific stuff (e.g. the flavours of RAML or OAS) - so you can see mention of this in the configuration where you can have "auto" , "raml" or "aml" I think the options are - so it tries to use the newer AML one and if that can't deal with the syntax, it tries the fallback to RAML. If the inbound request doesn't match the OAS/RAML specified stuff (resource, method, inputs) then errors are thrown APIKIT:* ones.. e.g. if wrong resource it gives you a certain error, if wrong method for a resource then different error.. So that's how it does the validation and rejection of stuff not in the spec. You can disable this validation step if you want (via the router config global element), but it does make life pretty easy vs doing it yourself.. Then it will route or call a flow based either on a pattern based on the method/resource/media type or the list you can configure on the api kit router config.. So it's like a dynamic flow router in that sense.
@orlybriceno4 жыл бұрын
Very nice explanation! I have a non related question, what type of board/markers are you using? hehe
@--Nath--2 жыл бұрын
They're some chalky type ones meant for those glowing displays. They came with the lightboard, the brand is Quartet neon markers dry erase. Just a warning they're not very dry-erase, we had to soak them with spray to get them off, and they weren't easy to get the ink flowing either, we had an out-take video with me shaking the things like crazy because I think they were made of some funky neon clay or something in there. :)