《REST API 和 Visual Studio:與 Acumatica 集成的最佳實踐.pdf》由會員分享,可在線閱讀,更多相關《REST API 和 Visual Studio:與 Acumatica 集成的最佳實踐.pdf(43頁珍藏版)》請在三個皮匠報告上搜索。
1、REST APIs and Visual Studio:Best Practices for Integrating with AcumaticaDmitrii Naumov2Presented byDmitrii NaumovSolutions Architect3AgendaLearning ObjectivesSession OverviewStarting New REST API Integration with Acumatica Using C#Using Custom EndpointsUsing Different Types of Integration in a Sing
2、le SolutionMigrating Existing SOAP API IntegrationsQ&A|Survey CompletionSummary and Key Takeaways4CPE DisclaimerThis session is NASBA-compliant,and you may get 1 CPE credit if you fulfill the following requirements:Participate in at least one quizProvide your full name and email address when you com
3、plete a quizFailure to provide your full name and email address will result in Acumaticas inability to recognize you in our reports;thus,we will be unable to issue a CPE certificate for you.If you are not interested in getting the CPE credit,specifying your personal details is optional.Learning Obje
4、ctives6Learning ObjectivesIn this session youll learn how to:Explore how to use Contract Based APIs with the GitHub REST API repository projectExplore APIs structureGenerate endpoint ModelMigrate existing SOAP integrationsUnderstand best practices for performance and efficiencyLessen implementation
5、time and reduce code baseWork with different types of APIsSession Overview8REST API ClientSpeed up developmentReduce maintenanceReuse existing codeFollow best practices9Acumatica Offerings Starting New REST API Integrationwith Acumatica Using C#11Unfamiliar data structureBoilerplate codeNeed to gene
6、rate data classesSlow startBoringChallanges12SolutionAdd Nuget packages:1.Acumatica.ContractBasedAPI2.Endpoint13SolutionEnjoy IntelliSense and Github Copilot!14SolutionNavigate through the classes to understand the data structure.15Benefits and ConsiderationsReduce start timeReuse existing boilerpla
7、te codeResue examplesReduce maintenance costsBase of the client is developed by AcumaticaTested by many different people using itQuizQuizScan the QR code to participate in the quiz.To receive CPE credit,you must include your full name and email address at the end of the quiz.18Quiz ExplanationQ:Wher
8、e can you get the Acumatica REST API Client package?A:On Nuget.orgUsing Custom Endpoint20ChallangesMaintenance of the endpoint structure in two places21SolutionJSON schema22Benefits and ConsiderationsThe same format as existing endpointsEasy to maintainQuizQuizScan the QR code to participate in the
9、quiz.To receive CPE credit,you must include your full name and email address at the end of the quiz.25Quiz ExplanationQ:How can you generate C#classes for a custom endpoint?A:By using an endpoint generator app that is available on Acumatica GitHubUsing Different Integration Types in One Solution27Ch
10、allangesSharing credentialsSupporting two clients28Solution29Additional InformationContract-Based REST APIOData(v3 and v4)APICustomization API30Benefits and ConsiderationsAll APIs in one placeSame authorizationSame code structureQuizQuizScan the QR code to participate in the quiz.To receive CPE cred
11、it,you must include your full name and email address at the end of the quiz.33Quiz ExplanationQ:Which of the following API types are supported by the REST API Client?Contract Based REST APIOData 3.0OData 4.0Upgrading SOAP Integration35ChallangesReimplementation of legacy integrationsSupporting of tw
12、o code basesLearn new approach36SolutionUse Acumatica.SOAPLikeWrapperForREST package37Benefits and ConsiderationsSeamless transition from SOAP to RESTAbility to keep the existing code and write new code in RESTQuizQuizScan the QR code to participate in the quiz.To receive CPE credit,you must include
13、 your full name and email address at the end of the quiz.40Quiz ExplanationQ:Suppose that you have an existing SOAP-based integration application.Select all responses that describe what you can do to update this application for Acumatica ERP 2024 R1.Add the SOAPLikeWrapperForREST Nuget package and r
14、eplace the using directives.Rewrite the code to use the REST API.41Keep in touch!No Reliance This document is subject to change without notice.Acumatica cannot guarantee completion of any future products or program features/enhancements described in this document,and no reliance should be placed on
15、their availability.Confidentiality:This document,including any files contained herein,is confidential information of Acumatica and should not be disclosed to third parties.Kwiat 18K Diamond Pendant NecklaceSaddleback Leather Flight Bag BriefcaseWe want your feedback.Q&AEvery survey completed=an entry to win!Clive Coffee Lucca A53 Mini V2Espresso MachineComplete a survey in the Summit app for an entry to win one of these awesome customer prizes!Dmitrii NSession Summary43Conclusion and Key Takeaways nuget.org/packages/Acumatica.RESTC