#NEWLINE# @ api_endpoint ( [ 'POST' ] ) #NEWLINE# def project_details_url( request ) : #NEWLINE# #INDENT# project_details = json . loads ( request . body . decode ( ) ) #NEWLINE# project_id = project_details . get ( 'project_id' ) #NEWLINE# if ( project_id is None ) : #NEWLINE# #INDENT# raise BadRequest ( 'project_id parameter is missing' ) #NEWLINE# #UNINDENT# project_details_url = '{}/project/{}' . format ( reverse ( 'orchestra:index' ) , project_id ) #NEWLINE# parsed_url = urlparse ( request . build_absolute_uri ( ) ) #NEWLINE# url = urlunsplit ( ( parsed_url . scheme , parsed_url . netloc , project_details_url , '' , '' ) ) #NEWLINE# return { #NEWLINE# #INDENT# 'project_details_url' : url , #NEWLINE# #UNINDENT# }