3 ms·
Hey Duncan! I’m one of the nion maintainers. These are great questions! The answer to this specific one is that currentUser follows the JSONAPI spec. Which mean
by benbayard 8y ago
Hey Duncan! I’m one of the nion maintainers. These are great questions! The answer to this specific one is that currentUser follows the JSONAPI spec. Which means we don’t really need to know the shape of the response, because they’re all the same! We then normalize the data in nion so you can use it as you expect. JSONAPI is not required for nion, you can use whatever you like including REST. We have several adapters that come built in to nion, including REST and JSONAPI.