Class AccessTokenController
java.lang.Object
org.craftercms.profile.controllers.rest.AccessTokenController
@Controller
@RequestMapping("/api/1/access_token")
public class AccessTokenController
extends Object
REST controller for the access token service.
- Author:
- avasquez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
accessTokenService
-
-
Constructor Details
-
AccessTokenController
-
-
Method Details
-
createToken
@RequestMapping(value="/create", method=POST) @ResponseBody public AccessToken createToken(@RequestBody AccessToken token) throws ProfileException - Throws:
ProfileException
-
getToken
@RequestMapping(value="/{id}", method=GET) @ResponseBody public AccessToken getToken(@PathVariable("id") String id) throws ProfileException - Throws:
ProfileException
-
getAllTokens
@RequestMapping(value="/all", method=GET) @ResponseBody public List<AccessToken> getAllTokens() throws ProfileException- Throws:
ProfileException
-
deleteToken
@RequestMapping(value="/{id}/delete", method=POST) @ResponseStatus(OK) public void deleteToken(@PathVariable("id") String id) throws ProfileException - Throws:
ProfileException
-