Silvan_WMDE created this task.
Silvan_WMDE added projects: Wikibase REST API Schema, Wikidata.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  The /entity/{entity_type}/{entity_id} URL schema seems quite intuitive for 
people who are familiar with Wikibase, because both items and properties are 
entities and their "item ids" and "property ids" are in fact also "entity ids".
  
  However, it is not immediately obvious why that relation must always be 
represented in the URL path. Also, why should `/statements` get to have a 
shortcut but `/items` and `/properties` don't?
  
  Proposed complete set of endpoints:
  
    /entities/{entity_type}
    /entities/{entity_type}/{entity_id}
    /entities/{entity_type}/{entity_id}/sitelinks
    /entities/{entity_type}/{entity_id}/sitelinks/{wiki_id}
    /entities/{entity_type}/{entity_id}/labels
    /entities/{entity_type}/{entity_id}/labels/{lang}
    /entities/{entity_type}/{entity_id}/descriptions
    /entities/{entity_type}/{entity_id}/descriptions/{lang}
    /entities/{entity_type}/{entity_id}/aliases
    /entities/{entity_type}/{entity_id}/aliases/{lang}
    /entities/{entity_type}/{entity_id}/statements
    /entities/{entity_type}/{entity_id}/statements/{statement_id}
    /entities/{entity_type}/{entity_id}/statements/{statement_id}/qualifiers
    
/entities/{entity_type}/{entity_id}/statements/{statement_id}/qualifiers/{qualifier_hash}
    /entities/{entity_type}/{entity_id}/statements/{statement_id}/references
    
/entities/{entity_type}/{entity_id}/statements/{statement_id}/references/{reference_hash}
    
    /items
    /items/{item_id}
    /items/{item_id}/sitelinks
    /items/{item_id}/sitelinks/{wiki_id}
    /items/{item_id}/aliases
    /items/{item_id}/aliases/{lang}
    /items/{item_id}/descriptions
    /items/{item_id}/descriptions/{lang}
    /items/{item_id}/labels
    /items/{item_id}/labels/{lang}
    /items/{item_id}/statements
    /items/{item_id}/statements/{statement_id}
    /items/{item_id}/statements/{statement_id}/qualifiers
    /items/{item_id}/statements/{statement_id}/qualifiers/{qualifier_hash}
    /items/{item_id}/statements/{statement_id}/references
    /items/{item_id}/statements/{statement_id}/references/{reference_hash}
    
    /properties
    /properties/{property_id}
    /properties/{property_id}/labels
    /properties/{property_id}/labels/{lang}
    /properties/{property_id}/descriptions
    /properties/{property_id}/descriptions/{lang}
    /properties/{property_id}/aliases
    /properties/{property_id}/aliases/{lang}
    /properties/{property_id}/statements
    /properties/{property_id}/statements/{statement_id}
    /properties/{property_id}/statements/{statement_id}/qualifiers
    
/properties/{property_id}/statements/{statement_id}/qualifiers/{qualifier_hash}
    /properties/{property_id}/statements/{statement_id}/references
    
/properties/{property_id}/statements/{statement_id}/references/{reference_hash}
    
    /statements/{statement_id}
    /statements/{statement_id}/qualifiers
    /statements/{statement_id}/qualifiers/{qualifier_hash}
    /statements/{statement_id}/references
    /statements/{statement_id}/references/{reference_hash}

TASK DETAIL
  https://phabricator.wikimedia.org/T264555

WORKBOARD
  https://phabricator.wikimedia.org/project/board/5003/

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Silvan_WMDE
Cc: Silvan_WMDE, Aklapper, Akuckartz, darthmon_wmde, Nandana, Lahi, Gq86, 
Pablo-WMDE, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, 
Scott_WUaS, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to