Skip to content

This repository is a json-server created to feed data into the React Application.

Notifications You must be signed in to change notification settings

naimozcan/sequences-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sequences.

This repository is a json-server created to feed data into the React Application below.

Server Structure

Collections

emotions

{
      id,
      name,
      description,
    }

triggers

{
      id,
      name,
      description,
    }

sequences

 {
      id,
      creationDate,
      eventDate,
      image,
      title,
      triggerId,
      summary,
      emotionId,
      emotionPolarity,
      emotionIntensity,
      thought: {
        content,
        polarity,
        intensity,
      },
      behavior: {
        content,
        polarity,
        impact,
      },
      notes: [
        {
          content,
          date,
        },
        {
          content,
          date,
        }
      ],
    }}

Used API Endpoints in the App

HTTP Method URL Request Body Description
GET /sequences Sends all games
GET sequences/id Sends selected sequence
GET /sequences/id?_expand=emotion&_expand=trigger Sends all sequences with extended info based on emotion and trigger id's
GET /emotions Sends all emotions
GET /triggers Sends all triggers
POST /sequences {newSequence} Creates a new sequence
POST /upload {formData} Send uploaded images to server via formData, returns url as response
PUT /sequences/id {editedSequence} Edits sequence details
DELETE /sequences/id Deletes a game object

Links

Project

Repository Link Client

Repository Link Server

Deploy Link

Slides

Slides Link

App Logo

About

This repository is a json-server created to feed data into the React Application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published