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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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