Basic Challenge

Are you ready for a challenge?
Complete the following steps - every successful participant will get a free T-Shirt!

This challenge is about contacting several REST endpoints in succession to go through the steps above.

 

Implement a REST client in a language of your choice and do the following:

  1. Register your account
  2. Activate your account
  3. Fetch a model image from our service
  4. Send back your personal code number
  5. Upload your solution

Authentication

The REST endpoints that you have to access in this challenge are protected via BASIC Authentication. To access the endpoints, you will have to send a BASIC authentication token as "authorization" header with your REST requests.

If you don't know how to create a BASIC authentication token and how the header should look like: Search for hints on the Internet.

 

The token should be created based on

username: WeAreDevelopers

password: YesWeAre

1

Register your account

The first step you have to do is to register your account here.

You need to provide your first name, last name, email address and the address to which we should ship your T-Shirt or the Nintendo Switch, in case you win. If your registration is successful, you will be sent an email with an activation link.

2

Activate your account

If you have successfully registered your account, you will receive an email containing an activation link.

To activate your account, you have to click on this link and you will be forwarded to an HTML page stating whether the activation was successful or not. After that, another mail will be sent to you containing your developer ID, that is needed on all subsequent calls.

3

Fetch a model image

In this step, you need to fetch a model image from our service. The model image contains an ADONIS NP process with all the steps that you did so far and the times when you did the steps. The model image will also contain a short code which is needed in the final step to successfully finish the challenge.

 

HTTP Method

GET

URL Path

→https://wad-challenge-2018.boc-cloud.com/rest/dev/models/{developerID}

Parameters  

developerID

String 

Path Parameter 

Your developer ID that you received after your account activation via email

authorization

String

Header Parameter

The BASIC authentication header token 

Response    

A response object from which you can get an InputStream. To get an image you can e.g. get the byte array from this stream and construct the image. The following HTTP status codes are possible:

  • 200 (OK) - successful request
  • 400 (Bad Request) - A general error occurred
  • 4001 (Unauthorized) - An invalid developer ID was sent (e.g. because the developer was not activated yet)

 

4

Send back your personal code number

The image that you received in the last step contains a code number which you need to read and send back to us in the final step.

 

HTTP Method

POST

URL Path

→https://wad-challenge-2018.boc-cloud.com/rest/dev/developers/{developerID}/codes

Parameters  (Content-Type has to be application/x-www-form-urlencoded) 

code

String

Form Parameter

The code you can read from the image fetched in the previous step

developerID

String 

Path Parameter 

Your developer ID that you received after your account activation via email

authorization

String

Header Parameter

The BASIC authentication header token 

Response    

A string message stating whether sending the code was successful or not. 
The following HTTP status codes are possible

  • 200 (OK) - successful request
  • 400 (Bad Request) - A general error occurred

 

Upload your Solution

When you are finished with your solution, you can optionally upload it to srv.boc-group.com/wad-upload/ after you completed the challenge. When you first enter this page, you have to enter your e-mail address. After that, an e-mail containing your personalized upload link will be sent to you. Follow this link and upload your solution.

 

Your upload has to be a single zip file named BASIC-{developerID}.zip (where {developerID} is your developerID that you received after you activated your account). The zip file has to contain your project/solution/all relevant source files and documentation that describes your solution.