• Home
  • Blog
  • Implementing web services for making available resources regarding a collection of recipes.

Implementing web services for making available resources regarding a collection of recipes.

0 comments

Introduction

The aims of the assignment are:

• To implement web services for making available resources regarding a collection of recipes.

Using Java Reflection and Servlet API

To apply the relevant validation strategies to the grocery, using the Validation Frameworkwe built in Lab 07.

Building Web ServicesYou are required to build the web services to:

  • Get all the recipes o Parameter: None o Data Sent
  • (to server): None

    o Data Received (from server): JSON array representing all the recipes

  • Get the recipe of a given id o Parameter: an id (to
  • be attached to the URL)

    o Data Sent: None

    o Data Received: JSON object representing the recipe

  • Add a recipe o Parameter: None
  • o Data Sent: JSON object representing the recipe o Data Received: JSON object

    representing the recipe

  • Edit (update) a recipe o Parameter: an id (to be
  • attached to the URL) o Data Sent: JSON object

    representing the edited recipe o Data Received:

    JSON object representing the newly updated recipe

  • Delete the recipe of a given id o Parameter: an id
  • (to be attached to the URL)

    o Data Sent: None o Data Received: None

    The URL for all requests should be: http://localhost:8080/recipeWS/recipes

    Your program must be tested by Postman.

    About the Author

    Follow me


    {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}