Skip to content

List of changes required #38

@debloper

Description

@debloper
  • Make success response structure as { message: string, data: object|null }
  • Make error response structure as { message: string, error: { code: number, details: string|null } }
  • Ensure API endpoints do not require trailing slash
  • Rename /accounts/ endpoints to /user
    • Create user endpoint to be /user/create
    • Expect sent password to be already hashed once from client-side
    • Do not impose any character/length restriction on the password
    • Unless other strategies are used before Beta, get rid of /local from auth endpoint
    • Turn change password request into a PATCH instead of POST
    • Consider s/Password//g for oldPassword & newPassword keys
  • Update /streams/ endpoint by abstracting away extra-steps
    • Upon creation of a user, rig should already allocate blank stream-config for the user
    • No need to support the possibility of multiple stream configs for single user for the time being
    • Therefore, stream config id is not needed (streamKey (mutable) should be tied to userID)
    • provisionStatus: true upon addition of first ingestion endpoint
    • provisionStatus: false upon removal of last ingestion endpoint (or manual deprovision)
    • Make it clearer how isStreaming & isActive add any useful value to stream config
    • Preferably remove the add ingestion endpoint and use update ingestion (PATCH) endpoint
      • Remove /streams/{streamID}/destination
      • Add /streams/{streamKey}/ as a PATCH request which accepts list of ingestions
      • Do not expect stream-key to be mandatory information
      • Expect ingestion URLs as full URL and not by service name and stream-key
      • Expect frontend to handle forming the full stream URL (rtmpUrl) and send as a list
    • Update stream details endpoint from /streams/{streamID} to /streams/{streamKey}/
    • List all stream endpoint may not be required for API v1 (co-stream feature)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions