Skip to content

Commit 8ac1448

Browse files
authored
Update README.md
1 parent b1a38aa commit 8ac1448

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

README.md

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# API-testing-tool
22
Aim : To build a tool using Jmeter to test performance of APIs in lower environment.
33

4-
The following RESTful APIs has been developed for input to our Jmeter based testing tool. Since APIs are hosted on AWS RDS and docker image of tool is available on docker hub(Details in footer), testings could also be done remotely.
4+
The following RESTful APIs has been developed for input to our Jmeter based testing tool. Since APIs are hosted on AWS RDS and docker image of tool is available on docker hub(Details in footer), testings could also be done remotely. All this APIs are also tested using Postman using this collection : https://www.getpostman.com/collections/482468e327bd012f4aac and are working correctly.
55

6-
To connect on postman: http://apitesting.ap-south-1.elasticbeanstalk.com/webapi/ is to be used as the base path followed by the any of the following request method path.
6+
For connection: http://apitesting.ap-south-1.elasticbeanstalk.com/webapi/ is to be used as the BASE PATH followed by the any of the following request method path.
77

8-
GET Methods: “{}” represents the input variable in the path. (Airports have been named by their three letter codes. For eg. DEL, MUM etc.)
8+
1. GET Methods: “{}” represents the input variable in the path. (Airports have been named by their three letter codes. For eg. DEL, MUM etc.)
99
> List all flights: /flightInfo
1010
1111
> Search by Flight id - /flightInfo/{FlightId}
@@ -20,29 +20,34 @@ GET Methods: “{}” represents the input variable in the path. (Airports have
2020
2121
Sample http requests:
2222
GET methods:
23+
> http://apitesting.ap-south-1.elasticbeanstalk.com/webapi/flightInfo
24+
2325
> http://apitesting.ap-south-1.elasticbeanstalk.com/webapi/flightInfo/airport/D
2426
2527
> http://apitesting.ap-south-1.elasticbeanstalk.com/webapi/flightInfo/1
2628
2729
> http://apitesting.ap-south-1.elasticbeanstalk.com/webapi/flightInfo/departure/MUM/arrival/DEL
2830
2931

30-
POST Method:
32+
2. POST Method:
3133
> Add a new Flight- /addFlight/
3234
3335
NOTE: Duplicate flight Ids are not allowed. I.e. each flight requires a unique id.
3436

3537
PUT Methods: The flight id of the required flight is fetched so that its particulars can be edited.
3638
“{}” represents the input variable in the path.
3739

38-
> Edit Arrival time /edit/{id}/arr/{time}
40+
> Edit Arrival time /edit/{id}/arr/{time}
41+
3942
> Edit Departure time /edit/{id}/dept/{time}
40-
> Edit Arrival destination/Airport /edit/{id}/arrapt/{Airport}
41-
> Edit Departure destination/Airport /edit/{id}/arrapt/{Airport}
42-
> Edit Price /edit/{id}/price/{price}
4343
44+
> Edit Arrival destination/Airport /edit/{id}/arrapt/{Airport}
45+
46+
> Edit Departure destination/Airport /edit/{id}/arrapt/{Airport}
4447
45-
DELETE Method: The required flight fetched by its Id is deleted.
48+
> Edit Price /edit/{id}/price/{price}
49+
50+
3. DELETE Method: The required flight fetched by its Id is deleted.
4651
> By flight ID - /delflight/byid/{id}
4752
4853

@@ -57,7 +62,3 @@ How to create Docker image and run it:
5762
5863
While using docker, since the API will use localhost, please use localhost:8080/FlightApi/webapi/ as the base url.
5964
For ex. localhost:8080/FlightApi/webapi/flightInfo/1 for a sample GET request.
60-
61-
62-
63-

0 commit comments

Comments
 (0)