Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
225 lines
6.7 KiB
JSON
225 lines
6.7 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "YOUR_POSTMAN_ID",
|
|
"name": "Project API",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "GET /api/projects",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Authorization",
|
|
"value": "Bearer {{JWT_TOKEN}}",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{API_URL}}/api/projects",
|
|
"host": [
|
|
"{{API_URL}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"projects"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "GET /api/projects/with-customers",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Authorization",
|
|
"value": "Bearer {{JWT_TOKEN}}",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{API_URL}}/api/projects/with-customers",
|
|
"host": [
|
|
"{{API_URL}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"projects",
|
|
"with-customers"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "GET /api/projects/:id",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Authorization",
|
|
"value": "Bearer {{JWT_TOKEN}}",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{API_URL}}/api/projects/:id",
|
|
"host": [
|
|
"{{API_URL}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"projects",
|
|
":id"
|
|
],
|
|
"variable": [
|
|
{
|
|
"key": "id",
|
|
"value": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "GET /api/projects/customer/:customerId",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Authorization",
|
|
"value": "Bearer {{JWT_TOKEN}}",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{API_URL}}/api/projects/customer/:customerId",
|
|
"host": [
|
|
"{{API_URL}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"projects",
|
|
"customer",
|
|
":customerId"
|
|
],
|
|
"variable": [
|
|
{
|
|
"key": "customerId",
|
|
"value": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "POST /api/projects",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Authorization",
|
|
"value": "Bearer {{JWT_TOKEN}}",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n\t\"name\": \"\",\n\t\"customerId\": \"\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{API_URL}}/api/projects",
|
|
"host": [
|
|
"{{API_URL}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"projects"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "PUT /api/projects/:id",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Authorization",
|
|
"value": "Bearer {{JWT_TOKEN}}",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n\t\"name\": \"\",\n\t\"customerId\": \"\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{API_URL}}/api/projects/:id",
|
|
"host": [
|
|
"{{API_URL}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"projects",
|
|
":id"
|
|
],
|
|
"variable": [
|
|
{
|
|
"key": "id",
|
|
"value": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "DELETE /api/projects/:id",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Authorization",
|
|
"value": "Bearer {{JWT_TOKEN}}",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{API_URL}}/api/projects/:id",
|
|
"host": [
|
|
"{{API_URL}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"projects",
|
|
":id"
|
|
],
|
|
"variable": [
|
|
{
|
|
"key": "id",
|
|
"value": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
} |