简体   繁体   中英

how to post and accept long text to ASP.net web api?

I am trying to figure out the parameters and class fields to post and accept "build notes"(example text below) info,I am trying to design my controller as follows?would the following work for accepting a long text?

Controller:

public IEnumerable<class name> GetBuildNotes([FromBody] Buildnotes buildNotes>)
{
...........
........
}

Buildnotes class:

public class buildnotes
{
public string build_notes. --> this goes to a database column build_notes of type longtext
.....

}

Long text:

    CHECKOUT POINT
    cld3 - 1855314
    cmn - 1855287

    Known issue
    [testsuite: STA_5G_VHT]: COMDEBUG-276224: consistent crash : APPS Crash - Kernel BUG at ffffff82dc55994c [PC at reg_todo+0x1dc/0x260] [LR at reg_todo]
    if you observe build loading issue.please use fastboot.exe path : \\\8998_adb_drivers
    Latest META only supported on BIN1 MTP. With BINA sometimes its works. but observed random boot-up crash
    BIN B MTP doesn't boot up with latest target meta
    Expected behavior :Bootloader UI updated with Boot verify feature in UEFI where the signing of the images is verified.
    You can use below script to determine the Bin / Sub BIN type and IDDq leakage values thru adb.
    Bring up device in adb mode
    Source : \\location\team\LA\8998_hw_type\FinalScript
    Usage : python bining.py
    Please run "adb disable-verity" to avoid "adb remount/push" related issue
    Sl4a/ PMC/ Acts/ Comms:Google_testing
    $[apps_crm]\source\google_testing
    WAPI build
    CCX build location
    e
    HOT FIX
    HW used for BIT sanity
    Recommendation to use MPT with chipname 2.0 card. please replace chipname card on MTP having MCN ends with 001/003/005 

    CDT programming forV2 HW
    http://qwiki.company.com/qct-drvsw/8998

Pre-built wiki
http://qwiki.company.com/com_wCOM/com-CBI/Build_With_External_AU#BUILDING_DRIVER_POINTING_TO_APPS_CRM
http://qwiki.company.com/com_wCOM/com-CBI/Build_With_External_AU#Build_ROME_and_chip_for_SP_:_com1234.LA.0.1

    Build loading procedure
    Load BIT (CI) Meta

    ENGG WLAN FW load on top of BIT META
    adb root
    adb remount
    adb shell mount -o rw,remount /firmware
    adb push wlanmdsp.mbn /firmware/image
    adb reboot

    ENGG BT FW load on top of BIT META
    adb root
    adb remount
    adb shell mount -o rw,remount /bt_firmware
    adb push * /bt_firmware/image
    adb reboot

Yes you can, I'm guessing you just need to ensure that the object you're passing from your client application matches your Buildnotes class structure.

Try this: How to pass json POST data to Web API method as object

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM