htl-perg-2019-20-5ahif / trippin-exercise-Alexikon

trippin-exercise-Alexikon created by GitHub Classroom
0 stars 0 forks source link

Trippin Exercise

Introduction

You are working in a company that uses the Trippin software to manage travels. You have to write a command-line tool to automate the creation of users.

Starting point

You have received a JSON file with all users.

Your Job

POST https://services.odata.org/TripPinRESTierService/People
Content-Type: application/json

{
    "UserName":"lewisblack",
    "FirstName":"Lewis",
    "LastName":"Black",
    "Emails":[
        "lewisblack@example.com"
    ],
    "AddressInfo": [
    {
      "Address": "187 Suffolk Ln.",
      "City": {
        "Name": "Boise",
        "CountryRegion": "United States",
        "Region": "ID"
      }
    }
    ]
}

Tips

Extra Points

Send me a link to the solution via GitHub to receive an extra point for your grade.