Coder Social home page Coder Social logo

formandsystem-api's Introduction

Hi there ๐Ÿ‘‹

me-working

I'm Lukas,

I work at GitHub ๐Ÿฑ๐Ÿ™ on the primer team. (Which is great because I love cats and octopi)

๐Ÿ”ญ I constantly refresh my portfolio try out new react stuff and work on my Figma plugins: design tokens & elevation scale

๐ŸŒฑ I am learning

  • how to use screen readers
  • productivly using an ANSI keyboard (I switched from a german layout)

๐Ÿค” Iโ€™m looking for help with my open source projects

๐Ÿ’ฌ Ask me about

  • design systems
  • design tokens
  • espresso based drinks

๐Ÿ“ซ Reach me on twitter: https://twitter.com/lukasoppermann

๐Ÿ“š Read my thoughts on medium.com/@lukasoppermann

๐Ÿงช Check out my work: https://lukasoppermann.com

๐Ÿ˜„ Pronouns: he/him

formandsystem-api's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

svenkeil

formandsystem-api's Issues

Error codes

Add more descriptive error codes. E.g. 201 created

Add ssl possibility.

User needs the following options:

  • port (with a default)
  • use certificate

Users need a way to upload the certificate

Validate Data on relationship update

PATCH /metadetails/{{metadetails_id}}/relationships/pages

E.g. second item is missing type.

{

    "data": [
        { "type": "pages", "id": "{{page_id}}" },
        { "id": "{{page_id_3}}" }
    ]
}

Automatic DB Backup

CMS should create and store some client DB backups to restore old states.

Fix tags

Make tags work for l5 version with new tag model

HATEOS

Make it really HATEOS

Missing stream.

What happens if stream does not exists? (And if not exist but article_id is set)?

Is this correct behaviour?

Answer:

  • Stream and Stream_record_id will be set to null by the transformer
  • position will be set to 0 by the transformer

Client Cache

API sends object to client with all api calls that need to be refreshed

[
   '/pages/89234987234-234234-34234',
   '/pages/89234987234-234234-34234',
]

DO request via laravel or wget to creare cache.

Write docs

Start writing docs in wiki:

  • Authentication
  • Get Request
    • streams/index
    • streams/show/$name
    • pages/index
    • pages/show/$name
  • Post Request
    • streams/store
    • pages/store
  • Delete Request
    • streams/destroy
    • pages/destroy
  • Update Request
    • streams/edit
    • pages/edit

check for ajax

If $request->ajax return other error message to if user browses the page

Wrong sort parameters

Make api check if columns exist before sorting.

EloquentStreamRepository.php

        if( isset($parameters['sort']) && $parameters['sort'] != "false" )
        {
          $sortParams = [$parameters['sort']];
          if( $pos = strpos($sortParams[0],'],') )
          {
            $sortParams = [
              substr($sortParams[0], 0, $pos+1),
              substr($sortParams[0], $pos+2)
            ];
          }

Add phpunit tests

Laracast Incremental API videos 10 & 11.

  • start basics and first test

DB Setup

  • needs to create oAuth table or use different routes
  • needs to create new tables an fetch from thoses

Testing

  • pages/index
  • pages/show
  • pages/store
  • pages/update
  • pages/delete
  • streams/index
  • streams/show
  • streams/store
  • streams/update
  • streams/delete

Refactor and update to Laravel 5

Refactor repositories, Controllers and all.

Naming

  • rename repo methods to reflect if result is array or model

Pages

  • pages/index
  • pages/show
  • pages/store
  • pages/update
  • pages/delete

Stream

  • streams/index
  • streams/show
  • streams/store
  • streams/update
  • streams/delete

multiple tests with imcomplete data

E.g. images can patch slug only, but if a link is provided everything needs to be updated

        "type" => "images",
        "attributes" => [
            "link" => "http://lorempixel.com/1511/1254/cats/?12207",
            'slug' => 'image-slug',
            'bytesize' => 122345,
            'width' => 300,
            'height' => 500,
        ]

Refactor merging of Stream & Page

Content is always returned in the following structure. Pages are nested inside the content object with the language as key.

stream_record_id: 1,
stream: 'news',
position: 3,
content:{
    de: {page-data...},
    en: {page-data...}
}

Tags

Tags should be added as a many to many relationship.

  • read on pivot table
  • add tags table
  • connect tags to entries

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.