mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
Update API docs
This commit is contained in:
@@ -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."
|
||||
}
|
||||
}
|
@@ -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
|
||||
}
|
@@ -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"
|
||||
}
|
||||
}
|
@@ -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
|
||||
}
|
@@ -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."
|
||||
}
|
||||
}
|
@@ -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"
|
||||
}
|
||||
}
|
@@ -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
|
||||
}
|
Reference in New Issue
Block a user