Reference no: EM133108453
Service-oriented Architectures
Coursework: Service Implementation and Testing
This assignment continues the development of Groupwork Task 4 on using Linx to implement a service and test it in Postman. Now the focus is on the Assess service.
We modify our model, requiring the Assess service to use the File service directly to check if the URL provided by the student refers to an existing file on that service.
The modified part of the sequence diagram is as follows. The componentdiagram states that your component Assess should use FileInt and implement StudentInt.
To ensure that we can test your service, you must implement the Open API specification-StudenInt.yaml for the of the Assess service. You will need to usethe Open API specification FileInt.yaml of the extended File service, both provided on BlackBoard.
Your tasks are as follows
1. Implement the getFeedback operation of the Assess service.
a. If sNR matches your ownstudent number,return a sentence of your choice for feedback.
b. If sNR does not match your student number, return "student number not found".
2. Implement the submit operation of the Assess service, which should use the check-Fileoperation of the File service to verify the URL and return the submission details in JSON format (not the file) as a confirmation to the student.
a. If sid matches your university account name (your email address up to but not including @), then
i. If urlmatches an existing URL on the File service, return a JSON object of type Submissionwith the values of module, assessment and URL fields copied from the corresponding input parameters.
ii. If sid does not match your university account name, return Submission object with subNr = "no such file".
b. If siddoes not match your university account name, return Submission object with subNr = "no such user".
3. Toteststhe submit operation,create three REST-specific sequence diagrams describing the execution of test cases with their concrete inputs and outputs covering cases a.i, a.ii and b in Task 2 above.
4. Following the scenarios defined in your sequence diagrams, test the services using Postman by first uploading a file to the File service, then invoking submit on the As-sess service. Take screenshots of the requests and replies to document your tests.
Attachment:- Service-oriented Architectures.rar