feat(monorepo): migrate to typescript monorepo
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
meta {
|
||||
name: add-article
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/aggregator/articles?token=dev
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
token: dev
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"title": "test",
|
||||
"body": "hello world",
|
||||
"link": "https://devscast.tech",
|
||||
"categories": ["a", "b"],
|
||||
"source": "radiookapi.net",
|
||||
"timestamp": 12,
|
||||
"metadata": {
|
||||
"title": "test",
|
||||
"description": "some description",
|
||||
"image": "https://devscast.tech/logo.svg",
|
||||
"locale": "fr"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: aggregator
|
||||
seq: 3
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "basango",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
vars {
|
||||
baseUrl: http://localhost:8000/api
|
||||
}
|
||||
vars:secret [
|
||||
token,
|
||||
refreshToken
|
||||
]
|
||||
@@ -0,0 +1,7 @@
|
||||
vars {
|
||||
baseUrl: https://devscast.org/api
|
||||
}
|
||||
vars:secret [
|
||||
refreshToken,
|
||||
token
|
||||
]
|
||||
@@ -0,0 +1,25 @@
|
||||
meta {
|
||||
name: add-comment-to-article
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/feed/articles/:articleId/comments
|
||||
body: json
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:path {
|
||||
articleId: 019589b9-7137-7156-9aeb-1e3f0f138a15
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"content": "this is a comment !"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: article-comment-list
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/feed/articles/:articleId/comments
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:path {
|
||||
articleId: 019589b9-7137-7156-9aeb-1e3f0f138a15
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: article-details
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/feed/articles/:articleId
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:path {
|
||||
articleId: 019589b9-7137-7156-9aeb-1e3f0f138a15
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
meta {
|
||||
name: article-overview-list
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/feed/articles
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:query {
|
||||
~lastId: 019589b9-7137-7af1-96b3-9ff7427218fb
|
||||
~dateRange[start]: 1740614400
|
||||
~dateRange[end]: 1740700800
|
||||
~page: 22
|
||||
~limit: 100
|
||||
~search: Tshisekedi
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
meta {
|
||||
name: article
|
||||
seq: 3
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: remove-comment-from-article
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{baseUrl}}/feed/articles/:articleId/comments/:commentId
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:path {
|
||||
commentId: 01971449-6f1b-724f-bb43-2bc0af698c5f
|
||||
articleId: 019589b9-7137-7156-9aeb-1e3f0f138a15
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: add-article-to-bookmark
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/feed/bookmarks/:bookmarkId/articles/:articleId
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:path {
|
||||
articleId: 01957834-0d68-7a45-9f77-39e66fd92b4f
|
||||
bookmarkId: 0196d6e6-dd3b-7f46-8097-a8b260dcd2de
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: bookmark-list
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/feed/bookmarks
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: bookmarked-articles-list
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/feed/bookmarks/:bookmarkId/articles
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:path {
|
||||
bookmarkId: 0196d6e6-dd3b-7f46-8097-a8b260dcd2de
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
meta {
|
||||
name: create-bookmark
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/feed/bookmarks
|
||||
body: json
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "read later",
|
||||
"description": null,
|
||||
"isPublic": false
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: delete-bookmark
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{baseUrl}}/feed/bookmarks/:bookmarkId
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:path {
|
||||
bookmarkId: 0196d1dc-eb76-7481-8ba5-90c73f838411
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
meta {
|
||||
name: bookmark
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: remove-article-from-bookmark
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{baseUrl}}/feed/bookmarks/:bookmarkId/articles/:articleId
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:path {
|
||||
articleId: 019549f9-13d8-725b-81f6-3c7e75aa5a26
|
||||
bookmarkId: 0196d1dc-eb76-7481-8ba5-90c73f838411
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
meta {
|
||||
name: update-bookmark
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{baseUrl}}/feed/bookmarks/:bookmarkId
|
||||
body: json
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:path {
|
||||
bookmarkId: 0196d1dc-eb76-7481-8ba5-90c73f838411
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "updated name",
|
||||
"description": "some description",
|
||||
"isPublic": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
meta {
|
||||
name: feed-management
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
meta {
|
||||
name: source
|
||||
seq: 2
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: follow-source
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/feed/sources/:sourceId/follow
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:path {
|
||||
sourceId: 01970f05-a945-7ef0-bfe3-4583491d58d2
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
meta {
|
||||
name: source-article-overview-list
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/feed/sources/:sourceId/articles
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:query {
|
||||
~lastId: 019549f9-0962-7fb5-9197-29b1754d13a5
|
||||
~dateRange[start]: 1740614400
|
||||
~dateRange[end]: 1740700800
|
||||
~page: 22
|
||||
~limit: 100
|
||||
~search: Lubumbashi
|
||||
}
|
||||
|
||||
params:path {
|
||||
sourceId: 01970f05-a945-7ef0-bfe3-4583491d58d2
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
meta {
|
||||
name: source-details
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/feed/sources/:sourceId
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:path {
|
||||
sourceId: 01970f05-a945-7ef0-bfe3-4583491d58d2
|
||||
}
|
||||
|
||||
headers {
|
||||
accept: application/json
|
||||
:
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
meta {
|
||||
name: sources-overview-list
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/feed/sources
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:query {
|
||||
~lastId: 01970f05-a945-7ef0-bfe3-45834b6bc40e
|
||||
~limit: 10
|
||||
~page: 1
|
||||
}
|
||||
|
||||
headers {
|
||||
accept: application/json
|
||||
:
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: unfollow-source
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{baseUrl}}/feed/sources/:sourceId/unfollow
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
params:path {
|
||||
sourceId: 01970f05-a945-7ef0-bfe3-4583491d58d2
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: account-confirm
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/account/confirm/:token
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:path {
|
||||
token: WNg8QWMENL77hbCXXkrqyCtYLn5MV7ngEbSJledP9DB6V701LwDPfMJZdkn2
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: account-unlock
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/account/unlock/:token
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:path {
|
||||
token: KFgBaXF4dxX4PtOMlrpjOoO6g1bkm6zAuvm8ocxC41LwJ27XQOHMn1J7V3kI
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: login
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/login_check
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"username": "bernard@devscast.tech",
|
||||
"password": "#New--123pass@"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: logout
|
||||
type: http
|
||||
seq: 10
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/token/invalidate
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token:
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
meta {
|
||||
name: password-request
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/password/request
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "bernard@devscast.tech"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
meta {
|
||||
name: password-reset
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/password/reset/:token
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:path {
|
||||
token: qCdtZkciu7C82LVlnZhjpogfYfxUbApkHdSQmJuFQhqaINHjU2bro5uMzuY3
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"password": "#New--123pass@",
|
||||
"confirm": "#New--123pass@"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: password-update
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/password/update
|
||||
body: json
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"current": "#1231AZuu*---23213",
|
||||
"password": "#New--123pass@",
|
||||
"confirm": "#New--123pass@"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
meta {
|
||||
name: refresh-token
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/token/refresh
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"refresh_token": "{{refreshToken}}"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: register
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/register
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "bernard",
|
||||
"email": "bernard@devscast.org",
|
||||
"password": "#New--123pass@"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: user-profile
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/me
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
Reference in New Issue
Block a user