Update API docs

This commit is contained in:
xfarrow
2025-06-10 12:20:34 +02:00
parent ade6a05408
commit 443b9d826b
34 changed files with 84 additions and 43 deletions

View File

@@ -0,0 +1,24 @@
meta {
name: CreateOrganization
type: http
seq: 1
}
post {
url: http://localhost:3000/api/organizations
body: json
auth: inherit
}
headers {
Content-Type: application/json
User-Agent: insomnia/2023.5.8
}
body:json {
{
"name" : "Blink Inc.",
"location" : "Napoli, Italy",
"description" : "Blink is a privacy-respecting business-oriented social media platform focused on fostering connections between businesses and individuals, propelling careers and sparking innovation in the professional world."
}
}

View File

@@ -0,0 +1,15 @@
meta {
name: DeleteOrganization
type: http
seq: 4
}
delete {
url: http://localhost:3000/api/organizations/1
body: none
auth: none
}
headers {
User-Agent: insomnia/2023.5.8
}

View File

@@ -0,0 +1,22 @@
meta {
name: FilterOrganizationByPrefix
type: http
seq: 5
}
post {
url: http://localhost:3000/api/organizations/filter
body: json
auth: none
}
headers {
Content-Type: application/json
User-Agent: insomnia/2023.5.8
}
body:json {
{
"name" : "bli"
}
}

View File

@@ -0,0 +1,15 @@
meta {
name: GetOrganization
type: http
seq: 2
}
get {
url: http://localhost:3000/api/organizations/1
body: none
auth: none
}
headers {
User-Agent: insomnia/2023.5.8
}

View File

@@ -0,0 +1,24 @@
meta {
name: UpdateOrganization
type: http
seq: 3
}
patch {
url: http://localhost:3000/api/organizations/1
body: json
auth: none
}
headers {
Content-Type: application/json
User-Agent: insomnia/2023.5.8
}
body:json {
{
"name": "Blink Inc.",
"location": "Naples (Campania), Italy",
"description": "Blink is a privacy-respecting business-oriented social media platform focused on fostering connections between businesses and individuals, propelling careers and sparking innovation in the professional world. Think of it as an open-source alternative to LinkedIn."
}
}

View File

@@ -0,0 +1,22 @@
meta {
name: AddOrganizationAdmin
type: http
seq: 1
}
post {
url: http://localhost:3000/api/organizations/1/admins
body: json
auth: none
}
headers {
Content-Type: application/json
User-Agent: insomnia/2023.5.8
}
body:json {
{
"personId" : "2"
}
}

View File

@@ -0,0 +1,16 @@
meta {
name: RemoveOrganizationAdmin
type: http
seq: 2
}
delete {
url: http://localhost:3000/api/organizations/1/admins/me
body: json
auth: none
}
headers {
Content-Type: application/json
User-Agent: insomnia/2023.5.8
}