Skip to content

sam-perez/sn-shorter-coding-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Dummy backend for the coding challenge

Description of API

  • The api has 2 endpoints
  • GET /campaign/:id/all_content_metadata
    • For a given campaign id, return all of the associated campaign metadata. Will return a JSON list of objects.
    • Example response:
        [
          {
            "id": "14d494ff-f045-5b45-a4a3-853fae9bb1f8"
          },
          {
            "id": "b518b738-42e6-5e96-b6a2-a8d8c0abc8a0"
          },
          ...
        ]
      
  • GET /content_metadata/:id/performance
    • For a given content_metadata id, return the associated performance data. Will return a JSON object.
    • Response will always have the following shape:
      {
        "id": <string>,
        "performance": {
          "comments": <integer>,
          "likes": <integer>
        },
        "snapshot": {
          "followers": <integer>
        }
      }
      
    • Example response:
      {
        "id": "14d494ff-f045-5b45-a4a3-853fae9bb1f8",
        "performance": {
          "comments": 17,
          "likes": 95
        },
        "snapshot": {
          "followers": 3846
        }
      }
      

About

A short coding challenge for SN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published