- Added needed status codes
- Renamings in docs and comments due to new project name
- Function
jwt.AddTokenToRequest()
is deprecated, now it isAddToRequest()
; sadly forgot backward compatability, so now are both available but first with an according comment
- Fixed return code in case of not implemented HTTP methods
to
405
(method not allowed)
- Reduced job handling complexity
- Changed
Job.Path()
to return aPath
instance - This instance provides access to the different parts of the path
- Now
JoinedResourceID()
has the role of the formerResourceID()
(Job
uses this one in the deprecatedResourceID()
) while the methodResourceID()
of path returns only the third part of the path
- Added access to URL path parts via
Job.Path()
- Added interfaces for handler methods directly mapping
HTTP verbs to the according REST methods like
Create()
,Read()
,Update()
,Modify()
,Delete()
, andInfo()
- Rename internal
envelope
to publicFeedback
inrest
- Added
ReadFeedback()
toResponse
inrequest
- Asserts in
restaudit
now internally increase the callstack offset so that the correct test line number is shown - Added
Response.AssertBodyGrep()
torestaudit
- Some renamings in
Request
andResponse
, sadly incompatible to the previous minor release - More convenience helpers for testing
- Adopted new testing to more packages
- Using http package constants instead of own plain strings
- Added documentation to
restaudit
- Extended
Request
andResponse
ofrestaudit
with some convenience methods for easier testing - Adopted
restaudit
changes inrest
tests
- Renamed type
Query
toValues
- Added
Form()
toJob
- Added
StatusCode
to feedback envelope JWTAuthorizationHandler
now provides different status codes depending on valid tokens, expiration time, and authorization
FileServeHandler
now logs the absolute filename and logs error if the name is invalid
PositiveFeedback()
andNegativeFeedback()
now also return false to be directly used as final return in handler methods
- Added logging to negative responses
- Added missing status code
- Added
JWTFromContext()
tohandlers
- Later removed JWT context from
handler
; nowjwt
package hasNewContext()
andFromContext()
as usual
- Added
RegisteredHandlers()
toMultiplexer
retrieve the list of registered handlers for one domain and resource Deregister()
is now more flexible in deristering multiple or all handlers for one domain and resource at once
- Added
request
package for more convenient requests to REST APIs
- Fixed missing feedback after JWT authorization denial
- Fixed marshalling bug of positive or negative feedback
- Added
Query
type and method for more concenient access to query values
Job
allows now to enhance its context for following handlersJWTAuthorizationHandler
stores a successfully checked token in the job context
Formatter.Write()
now also writes the status code
- Improved passing external contexts into an environment, e.g. containing database connection pools
- Changed multiplexer configuration to now use
etc.Etc
from theTideland Go Library
- More robust basepath handling now
- Fixed bug with public handler types
- Added methods for the lazy loading and rendering of templates
- Sadly has little impact on the rendering interface
- Finished rework after adding of JSON Web Token package
- Migrated
Tideland Go Library
web package after some rework into this new project