API

Get Articles

GET https://api.javabom.com/api/v1/articles

{
  "data": [
    {
      "type": "articles",
      "id": "1",
      "attributes": {
        "title": "Initial Article",
        "content": "This is content of article"
      },
      "links": {
        "self": "https://board-api/api/v1/articles/1"
      }
    },
    {
      "type": "articles",
      "id": "2",
      "attributes": {
        "title": "New Article",
        "content": "This is content of new article"
      },
      "links": {
        "self": "https://board-api/api/v1/articles/2"
      }
    }
  ]
}

Get an article

GET https://api.javabom.com/api/v1/articles/{articleId}

Path Parameters

Name
Type
Description

articleId

integer

article id

Post a new article

POST https://api.javabom.com/api/v1/articles

Request Body

Name
Type
Description

title

string

article title

content

string

article content

Template of POST request body

Update an article

PUT https://api.javabom.com/api/v1/articles/{articleId}

Path Parameters

Name
Type
Description

articleId

integer

article id

Request Body

Name
Type
Description

title

string

article title

content

string

article content

Template of PUT request body

Delete an article

DELETE https://api.javabom.com/api/v1/articles/{articleId}

Path Parameters

Name
Type
Description

articleId

integer

article id

Last updated

Was this helpful?