This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
323 custom rest headers #967
Closed
maltzj
wants to merge
13
commits into
androidannotations:develop
from
maltzj:323_custom_rest_headers
Closed
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
db0e652
added header annotation
maltzj 9c00a44
added basic docs and license to the header
maltzj 1aea6d5
renamed a variable in the RestAnnotationHelper so that it is more sen…
maltzj 3f31e6d
full implementation of restful headers (I think). Need to do lots of…
maltzj 20af46a
added the two test classes that are necessary
maltzj 33a4fd4
got the most basic test working
maltzj cf639ef
covered all the basic cases in testing, need to refactor a little
maltzj 7692b95
removed a useless test
maltzj b5d0cad
updated how the header name was specified and added some docs
maltzj c9edeaa
added whitespace
maltzj 52d791d
forgot to rename a method call
maltzj 20c8461
added licensing headers
maltzj e9946c5
renamed a the requiresHeader variable to make it even more clear
maltzj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
full implementation of restful headers (I think). Need to do lots of …
…testing
- Loading branch information
commit 3f31e6da01ff2a62a917d7dc48d45737925fea3f
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...androidannotations-api/src/main/java/org/androidannotations/annotations/rest/Headers.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| package org.androidannotations.annotations.rest; | ||
|
|
||
| /** | ||
| * Use on methods in {@link Rest} annotated class to add headers to a given method | ||
| */ | ||
| public @interface Headers { | ||
| Header[] value(); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use GitHub comments instead of commenting this kind of things directly into the code...