Implement a service and test it in Postman

Assignment Help Computer Engineering
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

Reference no: EM133108453

Questions Cloud

Which countries to conduct business and which market segment : Companies collect a wide variety of information about their foreign markets to decide in which countries to conduct business and which market segments
Conduct business and which market segments : Companies collect a wide variety of information about their foreign markets to decide in which countries to conduct business and which market segments
Explain leadership and management styles : Explain why leadership and management styles need to be adapted to manage different situations in social care settings
Organizational strategy-project risk and project management : Businesses often face significant challenges when it comes to ensuring that projects align with organizational strategy.
Implement a service and test it in Postman : Service Implementation and Testing - Implement the submit operation of the Assess service, which should use the check-Fileoperation of the File service
Analyse the theories of leadership : Analyse the theories of leadership and management in social care settings
What influence does smell have on taste : Pick one of your favorites foods eat it normally, and then take a bite of it while holding your nose. How does it taste when you can't smell very well? What inf
Looking for new revenue streams : They're always looking for new revenue streams, they always were a 80-20 model earned 80% and 20% in contributions. Always looking for more partnership like Bri
How much is the depreciation expense for the machine : Janet Company purchased a machine on April 1, 2017 for P750,000. How much is the depreciation expense for the machine for the year 2021

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe the purposes of domain analysis

Describe the purposes of domain analysis. Which UML (unified modeling language) diagrams are useful in scenario-based modeling?

  If the code needs improvement include a rewritten version

sourceforge javaforge and google code. pick any one of the 3 sites and find a program that uses at least one loop and

  Questionyou work for a hospital and most tasks in your

questionyou work for a hospital and most tasks in your organization are performed manually. the organization has

  Write a program has five threads reading one array in c

How to write a program has 5 threads reading one array in C, and sum all elements of this array.

  Display all 52 cards in a standard deck of playing cards

Display all 52 cards in a standard deck of playing cards

  Difference between passive and active security threats

What is the difference between passive and active security threats? List and briefly define categories of passive and active security attacks.

  What types of countermeasures need to be implemented

Start a discussion thread and discuss what type(s) of countermeasures need to be implemented to prevent the cyber attack described above from occurring.

  Create detail project plan that shows all tasks and subtasks

Create a detailed project plan (Gantt Chart) in MS-Project 2016 that shows all tasks and subtasks along with time-lines. The software has templates on Software.

  Display all items in the list and sorted by reference number

Display all items in the list, sorted by reference number. Display all items in the list, sorted by priority level.

  Describe the requirements of an information system

Who should be responsible for creating the models needed to describe the requirements of an information system?

  Why we have to turn off all caching in default aspx

Why we have to turn off all caching in default.aspx? What is a widget? Give 2 examples of widgets? For each Widget give a screen shot and a brief description.

  Discussion about the continuous process improvement

Continuous process improvement should always be a corporate objective and should filter down from senior management to the lowest levels of the organization.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd