parameters: (self, backend_id=None)
return_statement: return {'streetnetwork_backend': resp}, 201
docstring: Create a streetnetwork backend in db
docstring_summary: Create a streetnetwork backend in db
docstring_tokens: Create a streetnetwork backend in db
function: def post(self, backend_id=None):
          """
          Create a streetnetwork backend in db
          """
          if not backend_id:
              abort(400, status="error", message='backend_id is required')
  
          try:
              input_json = request.get_json(force=True, silent=False)
          except BadRequest:
              abort(400, status="error", message='Incorrect json provided')
  
          self._validate_input(input_json)
          sn_backend = models.StreetNetworkBackend(backend_id, input_json)
          try:
              models.db.session.add(sn_backend)
              models.db.session.commit()
          except sqlalchemy.exc.IntegrityError as ex:
              abort(400, status="error", message=str(ex))
  
          resp = marshal(sn_backend, streetnetwork_backend_fields)
          return {'streetnetwork_backend': resp}, 201
function_tokens: def post ( self , backend_id = None ) : if not backend_id : abort ( 400 , status = "error" , message = 'backend_id is required' ) try : input_json = request . get_json ( force = True , silent = False ) except BadRequest : abort ( 400 , status = "error" , message = 'Incorrect json provided' ) self . _validate_input ( input_json ) sn_backend = models . StreetNetworkBackend ( backend_id , input_json ) try : models . db . session . add ( sn_backend ) models . db . session . commit ( ) except sqlalchemy . exc . IntegrityError as ex : abort ( 400 , status = "error" , message = str ( ex ) ) resp = marshal ( sn_backend , streetnetwork_backend_fields ) return { 'streetnetwork_backend' : resp } , 201