From 3968f0cf5325edc292ea5987ac1e18a3fb5b93fb Mon Sep 17 00:00:00 2001 From: vahido9 <97857304+vahido9@users.noreply.github.com> Date: Mon, 30 Oct 2023 09:53:19 -0400 Subject: [PATCH] lab 6 --- README.md | 4 ++-- curl_lab5.sh | 21 --------------------- 2 files changed, 2 insertions(+), 23 deletions(-) delete mode 100644 curl_lab5.sh diff --git a/README.md b/README.md index 0b3cdb6..f8cd315 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # AddressBook ![example event parameter](https://github.com/va9id/sysc4806/actions/workflows/maven.yml/badge.svg?event=push) -This repository contains lab work from SYSC 4806: Software Engineering Lab. +This repo contains lab work from SYSC 4806: Software Engineering Lab. ## Usage -- Single page application available @ [localhost:8080/addressbook/single](http://localhost:8080/addressbook/single) +- Single page application @ [localhost:8080/addressbook/single](http://localhost:8080/addressbook/single) - Traditional client-side @ [localhost:8080/addressbook/create](http://localhost:8080/addressbook/create) \ No newline at end of file diff --git a/curl_lab5.sh b/curl_lab5.sh deleted file mode 100644 index fc0124a..0000000 --- a/curl_lab5.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -# Add Address book -curl -i -X POST -H "Content-Type:application/json" -d '{"buddies":[]}' http://localhost:8080/addressBooks - -# Add Buddy -curl -i -X POST -H "Content-Type:application/json" -d '{"name":"mbappe", "phone":"7"}' http://localhost:8080/buddyInfoes -curl -i -X POST -H "Content-Type:application/json" -d '{"name":"messi", "phone":"10"}' http://localhost:8080/buddyInfoes - -# Add 2 Buddy to Address Book -curl -i -X PATCH -H "Content-Type:text/uri-list" -d "http://localhost:8080/buddyInfoes/1" http://localhost:8080/addressBooks/1/buddies -curl -i -X PATCH -H "Content-Type:text/uri-list" -d "http://localhost:8080/buddyInfoes/2" http://localhost:8080/addressBooks/1/buddies - -# Delete Address Book -curl -i -X DELETE http://localhost:8080/addressBooks/1 - -# Delete 2 Buddy -curl -i -X DELETE http://localhost:8080/buddyInfoes/1 -curl -i -X DELETE http://localhost:8080/buddyInfoes/2 - -# Recall that gui is @ http://localhost:8080/display?id=1