Formats
THE API It can return results in two formats: XML and JSON. The client can specify the desired format in each method using the accept parameter in the request header.
Types of methods
Depending on the function of API To be invoked, different HTTP methods are available:
GET – GET methods request a representation of the specified resource from the platform CIÊNCIAVITAE.
POST – POST methods send a new entity to the specified resource, often causing a change in the state of the information in the resource. CIÊNCIAVITAE.
PUT – PUT methods replace all current representations of the target resource in the CIÊNCIAVITAE for the data sent in the request.
DELETE – The DELETE methods remove the specified resource from the CIÊNCIAVITAE platform.
Response codes
Depending on the type of call to the service of API, poderão ser retornados os seguintes códigos de resposta:
200 – Successful operation
201 – Record created or modified successfully
204 – Record unchanged since last update date
400 – SCIENCE Invalid ID
403 – Invalid permissions to access the curriculum
404 – Record not found
409 – Registration already existing in the curriculum
500 – Operation error
All 4-xx series response codes must be handled during the integration process to ensure the normalization of calls to API CIÊNCIAVITAE. Response codes in the 5-xx series should be checked by the integrator, and if the problem cannot be resolved, the integrator's support should be contacted. CIÊNCIAVITAE via email helpdesk@cienciavitae.pt.