Skip to content

Commit

Permalink
upload the postman collection to link it in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
suliman-99 committed Sep 18, 2024
1 parent a4c8c40 commit 0d9c475
Show file tree
Hide file tree
Showing 2 changed files with 262 additions and 1 deletion.
261 changes: 261 additions & 0 deletions Django_Seeding.postman_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
{
"info": {
"_postman_id": "f26bc6eb-0b7b-4e89-a64b-de1de952eb63",
"name": "Django Seeding",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "33910203",
"_collection_link": "https://djangoteampancode.postman.co/workspace/Django-Team-Workspace~ff869be8-22e1-42bd-8433-2b854db7a347/collection/33910203-f26bc6eb-0b7b-4e89-a64b-de1de952eb63?action=share&source=collection_link&creator=33910203"
},
"item": [
{
"name": "Registered Seeders",
"item": [
{
"name": "Seed All",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "JWT {{superuserToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"debug\": true,\r\n \"ids\": [\r\n \"id1\",\r\n \"id2\"\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{BaseURL}}/api/seeder/registered-seeders/seed-all/",
"host": [
"{{BaseURL}}"
],
"path": [
"api",
"seeder",
"registered-seeders",
"seed-all",
""
]
}
},
"response": []
},
{
"name": "List",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "JWT {{superuserToken}}",
"type": "text"
}
],
"url": {
"raw": "{{BaseURL}}/api/seeder/registered-seeders/",
"host": [
"{{BaseURL}}"
],
"path": [
"api",
"seeder",
"registered-seeders",
""
]
}
},
"response": []
}
]
},
{
"name": "Applied Seeders",
"item": [
{
"name": "List",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "JWT {{superuserToken}}",
"type": "text"
}
],
"url": {
"raw": "{{BaseURL}}/api/seeder/applied-seeders/",
"host": [
"{{BaseURL}}"
],
"path": [
"api",
"seeder",
"applied-seeders",
""
]
}
},
"response": []
},
{
"name": "By ID",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "JWT {{superuserToken}}",
"type": "text"
}
],
"url": {
"raw": "{{BaseURL}}/api/seeder/applied-seeders/id/",
"host": [
"{{BaseURL}}"
],
"path": [
"api",
"seeder",
"applied-seeders",
"id",
""
]
}
},
"response": []
},
{
"name": "Create",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "JWT {{superuserToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"SuperUserSeeder1\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{BaseURL}}/api/seeder/applied-seeders/",
"host": [
"{{BaseURL}}"
],
"path": [
"api",
"seeder",
"applied-seeders",
""
]
}
},
"response": []
},
{
"name": "Update",
"request": {
"method": "PUT",
"header": [
{
"key": "Authorization",
"value": "JWT {{superuserToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"new_id\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{BaseURL}}/api/seeder/applied-seeders/id/",
"host": [
"{{BaseURL}}"
],
"path": [
"api",
"seeder",
"applied-seeders",
"id",
""
]
}
},
"response": []
},
{
"name": "Delete One",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "JWT {{superuserToken}}",
"type": "text"
}
],
"url": {
"raw": "{{BaseURL}}/api/seeder/applied-seeders/id/",
"host": [
"{{BaseURL}}"
],
"path": [
"api",
"seeder",
"applied-seeders",
"id",
""
]
}
},
"response": []
},
{
"name": "Delete All",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "JWT {{superuserToken}}",
"type": "text"
}
],
"url": {
"raw": "{{BaseURL}}/api/seeder/applied-seeders/delete-all/",
"host": [
"{{BaseURL}}"
],
"path": [
"api",
"seeder",
"applied-seeders",
"delete-all",
""
]
}
},
"response": []
}
]
}
]
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = 'django-seeding'
version = '1.3.2'
version = '1.3.3'
description = 'Simple Django Package that helps developer to seed data from files and codes into the database automatically'
readme = "README.md"
authors = [
Expand Down

0 comments on commit 0d9c475

Please sign in to comment.