Giter Club home page Giter Club logo

education_api's Introduction

Education API

https://github.com/rrudakov/ring_leart/workflows/Clojure%20CI/badge.svg?branch=master https://codecov.io/gh/rrudakov/education_api/branch/master/graph/badge.svg

Implementation of REST API for education website.

Usage

The master branch runs on heroku after each push. Swagger can be found here. For more details see documentation.

License

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.

education_api's People

Contributors

rrudakov avatar

Watchers

 avatar

education_api's Issues

Introduce tags

Add tags field for article model and expose it along with articles. Add endpoint with all available tags sorted by popularity

Implement email verification

  • After registration save email info into database and hash for verification.
  • Implement smtp client for sending email to given address.
  • Email should be html with link, but in this stage it can be without any styles.
  • Add unit tests for all implemented functions.

Add search endpoint

We have to be able to search through the all posts. It should be /articles/search endpoint.

Add dresses API

Use the following specs:

(s/def ::id pos-int?)

(s/def ::title (s/and string? not-empty #(<= (count %) 500)))

(s/def ::description (s/and string? not-empty))

(s/def ::size pos-int?)

(s/def ::picture (s/and string?
                        not-empty
                        (partial re-matches const/valid-url-regex)
                        #(<= (count %) 1000)))

(s/def ::pictures (s/coll-of ::picture :kind vector? :distinct true :into []))

(s/def ::price (s/and string? not-empty (partial re-matches const/valid-decimal)))

(s/def ::created_on inst?)

(s/def ::updated_on inst?)

(s/def ::limit pos-int?)

(s/def ::offset pos-int?)

(s/def ::dress-create-request
  (s/keys :req-un [::title ::description ::size ::pictures ::price]))

(s/def ::dress-update-request
  (s/keys :opt-un [::title ::description ::size ::pictures ::price]))

(s/def ::dress-create-response
  (s/keys :req-un [::id]))

(s/def ::dress-response
  (s/keys :req-un [::id ::title ::description ::size ::price ::created_on ::updated_on]))

(s/def ::dresses-response
  (s/coll-of ::dress-response :kind vector? :distinct true :into []))

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.