Update README.md

This commit is contained in:
Ashita Prasad
2024-12-23 05:46:40 +05:30
parent 3527f9261a
commit 31b5ee929c

View File

@ -16,98 +16,98 @@ import 'package:postman/postman.dart';
void main() {
var collectionJsonStr = r'''
{
"info": {
"_postman_id": "a31e8a59-aa12-48c5-96a3-133822d7247e",
"name": "API Dash",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "26763819"
},
"item": [
{
"name": "GET Requests",
"item": [
{
"name": "Simple GET",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://api.apidash.dev",
"protocol": "https",
"host": [
"api",
"apidash",
"dev"
]
}
},
"response": []
},
{
"name": "Country Data",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://api.apidash.dev/country/data?code=US",
"protocol": "https",
"host": [
"api",
"apidash",
"dev"
],
"path": [
"country",
"data"
],
"query": [
{
"key": "code",
"value": "US"
}
]
}
},
"response": []
}
]
},
{
"name": "POST Requests",
"item": [
{
"name": "Case Lower",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"text\": \"I LOVE Flutter\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://api.apidash.dev/case/lower",
"protocol": "https",
"host": [
"api",
"apidash",
"dev"
],
"path": [
"case",
"lower"
]
}
},
"response": []
}
]
}
]
"info": {
"_postman_id": "a31e8a59-aa12-48c5-96a3-133822d7247e",
"name": "API Dash",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "26763819"
},
"item": [
{
"name": "GET Requests",
"item": [
{
"name": "Simple GET",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://api.apidash.dev",
"protocol": "https",
"host": [
"api",
"apidash",
"dev"
]
}
},
"response": []
},
{
"name": "Country Data",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://api.apidash.dev/country/data?code=US",
"protocol": "https",
"host": [
"api",
"apidash",
"dev"
],
"path": [
"country",
"data"
],
"query": [
{
"key": "code",
"value": "US"
}
]
}
},
"response": []
}
]
},
{
"name": "POST Requests",
"item": [
{
"name": "Case Lower",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\"text\": \"I LOVE Flutter\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://api.apidash.dev/case/lower",
"protocol": "https",
"host": [
"api",
"apidash",
"dev"
],
"path": [
"case",
"lower"
]
}
},
"response": []
}
]
}
]
}
''';