Sélectionnez File > Save (Fichier > Enregistrer) ou ⌘S pour enregistrer vos modifications.
Pour redéployer l'environnement, placez votre curseur sur le dossier d'environnement dev, puis cliquez sur .
Lorsque vous êtes invité à sélectionner un groupe de test à exporter, cliquez sur Déployer sans groupe de test, car le groupe de test a déjà été exporté.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eThis content guides users on modifying an API proxy's target endpoint to retrieve more detailed data within Apigee or Apigee hybrid environments.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves updating the \u003ccode\u003e<URL>\u003c/code\u003e element within the \u003ccode\u003edefault.xml\u003c/code\u003e file in the proxy's targets folder to append "xml" to the existing URL.\u003c/p\u003e\n"],["\u003cp\u003eAfter saving the changes, users are prompted to redeploy their environment, choosing to deploy without a test bundle if one has already been exported previously.\u003c/p\u003e\n"],["\u003cp\u003eUsers can test the updated target endpoint by executing a \u003ccode\u003ecurl\u003c/code\u003e command in the Terminal, which should return an XML-formatted response with city, first name, last name, and state information.\u003c/p\u003e\n"],["\u003cp\u003eThe subsequent step following the modification of the target endpoint is to add a new policy to the API.\u003c/p\u003e\n"]]],[],null,["# Step 5: Change the target endpoint\n\n*This page\napplies to **Apigee** and **Apigee hybrid**.*\n\n\n*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*\n\n\u003cbr /\u003e\n\nChange your proxy's target endpoint to one that returns more meaningful data.\n\n1. Expand the **helloworld** API proxy bundle and click **default.xml** in the **targets** folder to open the file in the editor.\n\n\n2. Update the `\u003cURL\u003e` element to append **xml** to the existing URL: \n\n ```\n \u003cTargetEndpoint name=\"default\"\u003e\n \u003cHTTPTargetConnection\u003e\n \u003cURL\u003ehttps://mocktarget.apigee.net/xml\u003c/URL\u003e\n \u003c/HTTPTargetConnection\u003e\n \u003c/TargetEndpoint\u003e\n ```\n3. Select **File \\\u003e Save** or ⌘S to save your edits.\n4. To redeploy the environment, position your cursor over the **dev** environment folder and click .\n\n5. When prompted to select a test bundle to export, click **Deploy without a test bundle** because the test bundle has already been exported.\n\n6. Run your API in the **Terminal** tab. \n\n ```\n curl 0:8998/helloworld?apikey=ZQA5euYtNeJ7ZCGCJMpvd6F2BZOmxOzY\n ```\n\n\n The following response is returned: \n\n ```\n \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n \u003croot\u003e\n \u003ccity\u003eSan Jose\u003c/city\u003e\n \u003cfirstName\u003eJohn\u003c/firstName\u003e\n \u003clastName\u003eDoe\u003c/lastName\u003e\n \u003cstate\u003eCA\u003c/state\u003e\n \u003c/root\u003e\n ```\n\nIn the next step, you'll add a new policy to your API.\n\n\n[1](/apigee/docs/api-platform/local-development/vscode/tutorial-create-workspace)\n\n\n[2](/apigee/docs/api-platform/local-development/vscode/tutorial-create-proxy)\n\n\n[3](/apigee/docs/api-platform/local-development/vscode/tutorial-deploy)\n\n\n[4](/apigee/docs/api-platform/local-development/vscode/tutorial-test)\n\n\n[5](/apigee/docs/api-platform/local-development/vscode/tutorial-change-target-endpoint)\n\n\n[(NEXT) Step 6: Attach a policy](/apigee/docs/api-platform/local-development/vscode/tutorial-attach-policy)\n\n\n[7](/apigee/docs/api-platform/local-development/vscode/tutorial-deploy-apigee)\n\n\n[8](/apigee/docs/api-platform/local-development/vscode/tutorial-promote)\n\n\u003cbr /\u003e"]]