Create custom route

This might add some processing delay, but you can try using the RecordGetter. See this: Smart field reference link

The process can be similar to:

  1. call await network.createCategory(categoryTocreate);
  2. call const record = await recordGetter.get(res.id) (or res depending on how the id is returned by your API)
  3. finish by response.send(recordGetter.serialize(record))

This is just guess-coding, but the idea is: create via you API, and then get it via Forest API and return it.

1 Like