summaryrefslogtreecommitdiff
path: root/system/api/handlers.go
AgeCommit message (Collapse)Author
2019-04-04removed []byte return on AfterAPIResponse, not needed)Ollie Phillips
2019-03-29passing data to hooksOllie Phillips
2019-03-29api before/after response hooksOllie Phillips
2017-08-15update Omittable, Pushable, interface to take res, req pair like Hooks, ↵Steve Manuel
update implementations & hydrate items
2017-04-29adding search, edit/new, and list view for uploadsSteve Manuel
2017-04-25adding support for file upload type and API handler to fetch file infoSteve Manuel
2017-03-15changing API for external client interaction. Externalable -> Createable, ↵Steve Manuel
+Deleteable, changing Hookable interface methods to conform to pattern: BeforeAPI$ACTION, etc.
2017-02-13updating omit implementationSteve Manuel
2017-02-13adding item.Omittable interface for field-level omission of data in ↵Steve Manuel
responses, implementation in handler and separating source into individual files for other interface impls
2017-01-26[core] Embedded and implement http.Pusher into http.ResponseWriter+gzip ↵Steve
Writer (#47) * added http Pusher interface to gzip response writer * implement Pusher on gzipResponseWriter and pass encoding header to pusher options * providing a generic error view fuction for code that calls a interface method which will have access to the response * fix []byte -> string type for fmt string * adding the res, req pattern for method arguments in interfaces and their method calls * fix for spacing in generic error message * remove default error views displayed in lifecycle hooks - will rely on custom views or redirects inside hook now that user has ResponseWriter. Otherwise, multiple WriteHeader calls would be warned * removing WriteHeader calls before return in external handlers * bump version 0.8.1
2017-01-25[core] implement http.Pusher on our composite gzip/response writer (#45)Steve
2017-01-16[core] Adding toggle for CORS, GZIP in admin/cms configuration (#30)Steve
This PR enables admins to disable/enable CORS and GZIP from within the admin CMS configuration page. Both are enabled by default. Note: currently, the GZIP implementation is 100% on the fly, for every qualifying API endpoint request. This could add significant CPU usage, but dramatically decreases bandwidth. Will be considering other better implementations, but for now YMMV. Possible optimizations: - pooling gzip Writers vs. creating a new one for each response - caching gzipped responses (in memory? on disk?) - enforcing size threshold (only gzip content larger than N bytes)
2017-01-10adding initial support for third-party addons and the basic framework for ↵Steve Manuel
how they are registered by the system
2017-01-08adding error type rather than string as exported var from itemSteve Manuel
2016-12-30updating error in addond and checking for nil prior to clling method on errSteve Manuel
2016-12-30update Hide method in Hideable interface, change GMT label to UTCSteve Manuel
2016-12-30adding hide to types handlerSteve Manuel
2016-12-30adding Hideable interface and initial implementation, allowing user to ↵Steve Manuel
define content that can be kept private
2016-12-29adding req as param to push, initially to get URL Path for http.Pusher#PushSteve Manuel
2016-12-29move push func to separate file and adding tidwall/gjson to creditsSteve Manuel
2016-12-29adding initial implementation of HTTP/2 server push to single content api ↵Steve Manuel
reponses
2016-12-25adding more error handling on buffer writes, removing old codeSteve Manuel
2016-12-19moving repository, bosssauce => ponzu-cmsSteve Manuel
2016-12-19[addons] Creating foundation for plugin-like system "Addons" (#24)Steve
* adding addons dir and sample addon which enables the use of a new input element in forms for referencing other content. "addons" is a conceptual plugin-like feature, similar to wordpress "plugins" dir, but not as sophisticated
2016-12-14adding db method ContentBySlug to lookup the type & id of content by its ↵Steve Manuel
slug and return it directly
2016-12-07testing cache control exec from CORSSteve Manuel
2016-12-06substituting "_{specifier}" => "__{specifier}" so users can add their own ↵Steve Manuel
types with "_" as a separator and not face conflicts
2016-12-06/*post?s*/ => /*content?s*/ substitutionSteve Manuel
2016-12-05update db.Query to return total of content count, add implement change ↵Steve Manuel
throughout references, add pagination to admin post results
2016-11-03adding catch for api handler to check if type exists and throw 404 if notSteve Manuel
2016-11-01moving query like code from handler to new Query func in db package so size ↵Steve Manuel
of posts returned is just what was requested
2016-10-28adding initial components for anayltics tracking API requestsSteve Manuel
2016-10-26code reorganizingSteve Manuel
2016-10-24remove debug printlnsSteve Manuel
2016-10-24fixing mistyped variable nameSteve Manuel
2016-10-24debugging params for post queriesSteve Manuel
2016-10-24debugging params for post queriesSteve Manuel
2016-10-24initial implementation of sort results in APISteve Manuel
2016-10-17adding initial updates to provide better time recording for post editing & ↵Steve Manuel
creation
2016-10-09returning absolute import paths, will move to vendor in future commitSteve Manuel
2016-10-09renaming import paths globally to ensure build is using new files, not ones ↵Steve Manuel
from original repo
2016-10-09updating import pathsSteve Manuel
2016-10-09adding CORS support and separaring some api handliers into own fileSteve Manuel