Page MenuHomePhabricator

Build response data object from server
Closed, ResolvedPublic

Description

The data object which consists of sections to be proposed to users upon creating articles would be returned in an object from the server upon request with the name of the article.

For example using the request https://tools.wmflabs.org/scribe/api/v1?article=test

should return proposals for sections to write such article in the format below:

{
  "article_name": "test", 
  "resources": [
    {
      "content": "Test in Arts and entertainment", 
      "domain": "ARTS", 
      "section_label": "Arts and entertainment", 
      "url": "https://en.wikipedia.org/wiki/Test#Arts_and_entertainment"
    }, 
    {
      "content": "Test in Science and technology", 
      "domain": "Science", 
      "section_label": "Science and technology", 
      "url": "https://en.wikipedia.org/wiki/Test#Science_and_technology"
    }, 
    {
      "content": "Test in Sports", 
      "domain": "Sports", 
      "section_label": "Sports", 
      "url": "https://en.wikipedia.org/wiki/Test#Sports"
    }, 
    {
      "content": "Test in People", 
      "domain": "People", 
      "section_label": "People", 
      "url": "https://en.wikipedia.org/wiki/Test#People"
    }
  ]
}

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
ResolvedNone
ResolvedEugene233