Interactive demo | demos/10-serialized

Intro

Demonstrating passing serialized Python objects back and forth
Run
Server offline
Idle

Parameters

Result

(none yet)

Sample api request

Source code

def endpoint(a:int=3, s:serve.serialized()=s) -> serve.serialized():
    """Demonstrating passing serialized Python objects back and forth

:param a: random integer that's added to the array
:param s: numpy array"""
    return {"result": s+a}