Icon New game New game

API Python

Fill in the Blanks

API Python

Download the paper version to play

1 times made

Created by

Colombia

Top 10 results

There are still no results for this game. Be the first to stay in the ranking! to identify yourself.
Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

  1. time
    score
  1. time
    score
time
score
time
score
 
game-icon

Fill in the Blanks

API PythonOnline version

API Python

by Edgar Nuñez
1

app import get my_servicio return read_messages def from

from typing import Dict
fastapi FastAPI
from src . message_service import MessageService
= FastAPI ( )


= MessageService ( )

@app . get ( " / " )
def read_root ( ) :
{ " message " : " Hello World " }

@app . post ( " / api / message " )
send_message ( message : Dict ) :
my_servicio . add_message ( message )
return { " message " : " Message received " }

@app . ( " / api / message " )
def ( ) :
return my_servicio . get_messages ( )

educaplay suscripción